1 : A method comprising: detecting a context switch request; halting a master thread; estimating the retirement rate of a state associated with worker threads; and determining, based at least in part upon the state retirement rate of the worker threads, if the worker threads should be halted and the worker threads' state saved to memory.