Patent ID: 7610473

Claim:
A method for allocating a new thread context in a microprocessor by executing a single instruction in a parent thread, the method comprising: a. retrieving an opcode of the single instruction that instructs the microprocessor to allocate resources for a new thread and to schedule execution of said new thread on the microprocessor, said resources comprising a program counter and a new register set; b. retrieving a first operand of the single instruction that specifies an initial instruction fetch address to be stored into said program counter allocated for said new thread; c. retrieving a second operand of the single instruction that specifies a memory address of a data structure in memory; d. loading information required for the new thread from said data structure into the new register set without copying an entire context of the parent thread; and e. executing the single instruction by performing exactly two reads of the first and second operands from a first register set and one write of the second operand to the new register set.