Article View: comp.os.os2.programmer
Article #1731Can semaphore survive process ?
From: Ernst Kloecker
Date: Thu, 05 Nov 1992 16:08
Date: Thu, 05 Nov 1992 16:08
23 lines
1385 bytes
1385 bytes
Hi, I want to use semaphores to protect critical regions in a multi tasking application. A problem is that these tasks are only started when an external event occurs (phone rings) and they are stopped by another external event (hang up). Is it possible to establish semaphores which stay in effect as long as the whole application (which consistes of sveral processes) is running ? Could I accomplish that by creating these semaphores in a "semaphore manager process" which could also fulfill a watchdog function ? Or could this kind of semaphore be created in shared memory ? This question applies to both OS/2 1.3 and OS/2 2.0. Thanks for any info, Ernst. -- ----------------------------------------------------------------------------- Ernst Kloecker phone: ++49-30-6181635 e-mail: ernst@cs.tu-berlin.de -----------------------------------------------------------------------------
Technical Details
Message-ID:
<1992Nov5.160828.385@cs.tu-berlin.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!cs.tu-berlin.de!ernstShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!cs.tu-berlin.de!ernst From: ernst@opal.cs.tu-berlin.de (Ernst Kloecker) Subject: Can semaphore survive process ? Message-ID: <1992Nov5.160828.385@cs.tu-berlin.de> Sender: news@cs.tu-berlin.de Organization: Techn. University of Berlin, Germany Date: Thu, 5 Nov 1992 16:08:28 GMT Lines: 23