A system and method for segregating suspicious threads in a hosted
environment to prevent CPU resource exhaustion from hung threads are
disclosed. An application server identify suspicious threads that may
cause the threads to hang or to execute for a long period of time and
transfers the suspicious threads to a thread quarantine manager, where
the suspicious threads are bundled together with other threads that have
been identified to be hung or to be executed for a long period of time.