Patent ID: 7971205

Claim:
A method for facilitating handling of a user mode thread in a computing environment by a processor device, the user mode thread provided a no context switch attribute, the method comprising: analyzing the user mode thread by a scheduler to determine if the no context switch attribute is set, wherein the no context switch attribute is adapted to detect a plurality of operations capable of causing the user mode thread to become suspended, and if the no context switch attribute is set: the scheduler allows the user mode thread to continue running, wherein the user mode thread bypasses existing processes scheduled in the scheduler, the user mode thread having a near interrupt disabled priority, and if the user mode thread is forced to be suspended by an interrupt handler, the scheduler resets the no contexts switch attribute by clearing the no context switch attribute and sends a signal to the user mode thread indicating an exception, wherein the interrupt handler is the only mechanism whereby the user mode thread having the set no context switch attribute may be forced to be suspended, and upon an exit of the interrupt handler, returning immediate control to the user mode thread with the set no context switch attribute to continue execution, the set no context switch attribute having been previously reset to clear, by the scheduler, prior to the interrupt handler preemptively removing the thread; and processing the user mode thread by the scheduler in a normal priority if the no context switch attribute is not set.