Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Provide Simple Mechanism to Allow Thread to Exit without Terminating Process

IP.com Disclosure Number: IPCOM000118487D
Original Publication Date: 1997-Feb-01
Included in the Prior Art Database: 2005-Apr-01
Document File: 2 page(s) / 47K

Publishing Venue

IBM

Related People

Chao, T: AUTHOR [+4]

Abstract

Disclosed is a simple method to allow a computer program to exit a thread (task) without terminating the process.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 65% of the total text.

Provide Simple Mechanism to Allow Thread to Exit without Terminating
Process

      Disclosed is a simple method to allow a computer program to
exit a thread (task) without terminating the process.

      Per POSIX 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.

      Currently, in 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.

      This 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...