Provide Simple Mechanism to Allow Thread to Exit without Terminating Process
Original Publication Date: 1997-Feb-01
Included in the Prior Art Database: 2005-Apr-01
Chao, T: AUTHOR [+4]
Disclosed is a simple method to allow a computer program to exit a thread (task) without terminating the process.
Provide Simple Mechanism to Allow Thread to Exit without
a simple method to allow a computer program to
exit a thread (task) without terminating the process.
standards, when a thread abends, the entire process
is terminated. This is not always desirable. If the thread is not
critical to the process, it would be useful simply to have the thread
exit and allow the process to continue.
many systems (for example, OS/2*), to avoid
having a failing thread take down its process, signal handlers must
be created to process the failure and terminate only the abending
thread. However, the use of signals in a threaded environment is not
recommended, as signals and their handlers are process-scoped rather
than thread-scoped. If two threads within a given process handle a
particular signal in different manners, the processing of the signal
depends on which thread last installed its signal handler.
disclosure describes a technique to provide the user with
a method to specify the system action to be taken when a particular
thread abends: exit the thread or exit the entire process. The
method consists of providing a flag to set/reset in a thread control
block or an Application Program Interface (API) which the user calls
(which performs the bit set/reset for the user). Either method is a
much simpler mechanism than writing signal handlers in a threaded
environment. The me...