Clean thread termination
Abstract
Apparatus, methods, and computer program products are disclosed for a process of terminating a thread in a clean, certain, and forcible manner. A thread is forcibly terminated in such a manner that data structures in the system are not left in an inconsistent state and the overall system status is not damaged. The methods and systems described are for terminating a thread in a computer language execution environment. Methods are implemented in an interpretive loop executing in a language that is interpreted and in runtime support libraries in a language that are not interpreted. A method of forcibly terminating a thread in a computer language execution environment is described. A thread receives a terminate thread command. The thread has associated with it a termination flag, a value of the termination flag being immutable once set, and one or more monitors. The termination flag is then set for the thread. An exception is then propagated in the execution environment thereby indicating termination of the thread. The exception handler and the finally clause of the thread is ignored during thread termination. The monitors associated with the thread are then exited.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 16.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of forcibly terminating a thread in a computer language execution environment comprising: a first thread receiving a terminate thread command, the first thread having an associated termination flag, a value of the termination flag being immutable once set and having one or more monitors; setting the termination flag for the first thread; propagating an exception in the execution environment thereby indicating termination of the first thread; ignoring at cast one exception handler and a finally clause of the first thread; and existing one or more monitors associated with the first thre
- Claim 2Depends on #1
A method as recited in claim 1 further comprising initiating a termination procedure to cleanly terminate the first thread.
- Claim 3Depends on #1
A method as recited in claim 1 wherein receiving a terminate thread command further comprises a second thread issui
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 16 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (5)
- Binder, Walter "Design and Implementation of the J-SEAL2 Mobile Agent Kernel", Application and the Internet, 2001.
- Chan, Patrick, et al. "The Java Class Library, Second Edition, vol. 1 (pp. 1723-1750) 1998".
- Chris Hawblitzel, Chi-Chao Chang, Grzegorz Czajkowski, Deyu Hu, and Thorsten von Eicken, "Implementing Multiple Protection Domains in Java," Technical Report 97-1660, Department of Computer Science, Cornell University, 15 pp.
- Czajkowski, Grzegorz, et al., "JRes: A Resource Accounting Interface for Java," In Proceedings of the 1998 ACM OOPSLA Conference, Vancouver, BC, Oct. 1998.
- Foote, Bill "Description of JavaOS and PersonalJava", Jul. 15, 2002, Release date of PersonalJava 1.0 is Dec. 1997.