Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!lotus!bobf From: bobf@lotus.com (Bob Frankston (BFrankston)) Newsgroups: comp.os.os2 Subject: Re: Threads and semaphores under OS/2 Keywords: OS/2 confusing Message-ID: <1989Oct25.152203.2354@lotus.com> Date: 25 Oct 89 15:22:03 GMT References: <5154@uhccux.uhcc.hawaii.edu> <3732@dell.dell.com> <3981@helios.ee.lbl.gov> <1989Oct19.143604.21001@rpi.edu> <32054@ucbvax.BERKELEY.EDU> <8187@microsoft.UUCP> Reply-To: bobf@lotus.UUCP (Bob Frankston ) Organization: Lotus Development Corp. Lines: 8 Note that semaphores are associated with a process and not a thread and thus can't be used to detect the death of a thread. If the thread terminates cleanly, you can have it send a message to a queue announcing its demise. You can have a separate thread waiting on the queue that frees the resources for the departed tthreads. [Opinions are my own and do not necessarily represent Lotus]