Method and apparatus for managing thread execution in a multithread application
Abstract
A method for managing the suspension and resumption of threads on an individual basis in an information handling system having an operating system (OS) kernel and a user process having multiple threads of execution. An originating thread issues a pthread_kill( ) service request to the OS kernel to send a specified signal (thread-stop or thread-continue) to a specified target thread within the same process to suspend or resume execution of the target thread. More particularly, in response to a request from a thread to suspend the execution of the target thread, the OS kernel sends a thread-stop signal (SIGTHSTOP) to the target thread, transferring control within the target thread from a normally executing program portion to a signal interrupt routine. Upon gaining control, the signal interrupt routine issues a service request to the kernel to stop the target thread. In response to a request from a thread to resume execution of the target thread, the OS kernel sends a thread-continue signal (SIGTHCONT) to the target thread to post the waiting target thread and return control to the signal interrupt routine. Upon regaining control, the signal interrupt routine returns control to the p
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In an information handling system having an operating system kernel and a user process having multiple threads of execution including a target thread, the target thread having a program context and an execution state and the target thread containing a normally executing program portion, a signal interrupt routine for obtaining control of execution of the target thread upon delivery of a signal from the operating system kernel to the target thread, and signal interrupt logic for transferring control from the normally executing program portion to the signal interrupt routine in response to a sig
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (4)
- IBM Technical Disclosure Bulletin, vol. 36, No. 11, Nov. 1993, pp. 483-485, S. Bender and D. Hughes.
- Muller, "A Library Implementation of Posix Threads Under Unix", USENIX, 1993, pp. 29-42.
- Ravenbrook, "Design of the Posix Thread Extensions for MPS", Available at RAVENBROOK.COM/PROJECT/MPS/MASTER/DESIGN/PTHREADEXT/, 2000, pp. 1-6.
- UNIX Network Programming, W. Richard Stevens, 1990, PTR Prentice-Hall, Inc. , pp. 43-53. Base Operating System and Extensions Technical Reference, vol. 1, pp. 1-2.