title: How does minecraft autosaves and keeps proccesing the game at the same time?
body: <p>Ok guys. I know you can read files and the sort by (at least in C++) using ostream and istream. My question is that the game >Minecraft&lt; is able to generate chunks (the game world), save them and load them when needed all while the player is interacting with the game. By interacting I mean building, mining, walking, dying (quiet frequently).
  How is all of this possible?? How can you modified date that's being saved every 2 seconds?? Should I open a stream and not close it, or is there a special function or method that does this??
  Thanks!!</p>