mardi 25 août 2015

Is there a way to write a part from memory to a file

I am trying to develop some code that will probably run multiple weeks on a HPC environment. The problem is that chances are rather small that I'll be able to monopolise a cluster to run my program as a whole and therefore I am thinking about ways to store my progress into some file system.

As I was thinking, I wondered whether there wouldn't be a way to take some snapshot from the memory my application is using and store that in some file. I have this feeling this should be the simplest way to just stop processing and start again whenever you want, because you could just load that file into memory and continue working as if nothing happened.

I started searching around on the internet trying to find something about this, but as I don't really know the term (I suppose there is a term) for this and I didn't get any further than billions of ways to write objects to files as efficient as possible. I didn't get any further, because I find it hard to understand what those writers are really doing. I don't believe though that those writers and streams perform something as I described above... (please correct me if I mistake!)

My question thus could be formulated as follows:
Is there any way to do something like this in java? If not, does there exist anything that approaches the idea or performance of what I tried to describe?



from Newest questions tagged java - Stack Overflow http://ift.tt/1LynqXh
via IFTTT

Aucun commentaire:

Enregistrer un commentaire