From: shadowfirebird Date: 2008-08-23T00:21:33+09:00 Subject: Re: Saving the state of a Thread? Patrick Li wrote: > Hi, > Does anyone have any clever ideas on saving the state of a Thread? > I have a thread that runs for a couple of hours, and I need to save the > progress to disk, so that I can restart from where I left off. > > Any ideas would be welcome. > -Patrick Maybe you should think in terms of saving the state of the objects in a thread, instead. Thought of that way, it becomes pretty easy -- you could use yaml, for example. Or have I got the wrong end of the stick?