×

Method and apparatus for handling threads in a data processing system

  • US 7,275,247 B2
  • Filed: 09/19/2002
  • Issued: 09/25/2007
  • Est. Priority Date: 09/19/2002
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method in a data processing system for managing threads, the method comprising:

  • detecting by a processing unit in the data processing system a kernel thread associated with a user thread;

    determining by the processing unit that the kernel thread is unneeded by the user thread;

    responsive to the kernel thread being unneeded, semi-detaching, by the processing unit, the kernel thread by placing the kernel thread on a semi-detached list and in an unrunnable state concurrent with the user thread, wherein the kernel thread maintains information regarding a same user stack and signal mask of the user thread, and wherein data for the kernel thread remains on the same user stack as data for the user thread in case the user thread later needs the kernel thread, and wherein the threads execute in an operating system of the data processing system; and

    responsive to the user thread waking from sleep, removing by the processing unit the kernel thread from the semi-detached list, wherein reattachment to the user thread is unnecessary.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×