发明名称 Clean thread termination
摘要 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.
申请公布号 US2002161816(A1) 申请公布日期 2002.10.31
申请号 US20010846064 申请日期 2001.04.30
申请人 SUN MICROSYSTEMS, INC. 发明人 KAWAHARA HIDEYA;FOOTE WILLIAM F.;LONG DEAN R.E.
分类号 G06F9/48;(IPC1-7):G06F17/00;G06F9/00 主分类号 G06F9/48
代理机构 代理人
主权项
地址