Method and apparatus for creating multithreaded time slices in a multitasking operating system
AssigneeInternational Business Machines Corporation
InventorsHarry M. Mathis, Shrikant N. Parikh
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsHarry M. Mathis, Shrikant N. Parikh
Estimating the term…
A method and apparatus for subdividing a thread's processing cycles among a set of threadlets or regions within a thread or process. This is achieved through instructions in the application code which are interpreted by the operating system. The beginning and ending of a threadlet is through the "Begin Threadlet" and "End Threadlet" instructions. A segmented stack is utilized to separately hold that part of the stack belonging to each threadlet. The programmer must know within the application code places where the data contents of the registers do not merit saving or is saved in memory. This provides the user with an opportunity to switch to a different activity without saving registers. The user identifies this to the operating system by a special instruction called "SWITCHIR". The SWITCHIR instruction tells the operating system not to save registers. Therefore, within the same thread, the operating system will keep on executing a threadlet until it encounters this instruction. Upon encountering the SWITCHIR instruction, the operating system will save the program counter and stack pointer in a threadlet control block and execute subsequently encountered threadlets.
A method, implemented in a data processing system, of subdividing processing cycles of a thread among a set of threadlets within an application program, comprising:
A method, implemented in a data processing system, of reducing the overhead for context switching for a threadlet having a fixed execution time by an operating system in said data processing system, comprising:
An apparatus in a data processing system for subdividing processing cycles of a thread among a set of threadlets within an application program, comprising:
Dependencies are inferred from the claim text.