An apparatus for managing resource in a multithreaded system, and
attempting to increase the speed in which task switching occurs by
controlling when thread state is stored to memory. The apparatus includes
a thread dispatcher circuit capable of determining, based upon an
estimated state retirement rate associated with the worker threads and a
rate of saving state of the worker threads, if the worker threads should
be halted and saved the state of the worker threads.