From: "Iñaki Baz Castillo" Date: 2008-08-23T00:05:35+09:00 Subject: Re: Saving the state of a Thread? El Viernes, 22 de Agosto de 2008, Patrick Li escribió: > 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. Not sure about what you mean. Maybe it would be useful for you the usage of variables in threads, for example: this_thread = Thread.current this_thread[:time_on] = Time.now This stores the actual time into a variable for that thread, so you later can read it by doing: this_thread[:time_on] But not sure if you want this. -- Iñaki Baz Castillo