Article View: comp.os.os2.programmer
Article #174Can semaphore be released/cleared from other process ?
From: Ernst Kloecker
Date: Wed, 04 Nov 1992 19:50
Date: Wed, 04 Nov 1992 19:50
18 lines
1138 bytes
1138 bytes
Hi, in a multi-tasking application I am implementing at the moment I want to use semaphores to protect critical regions. What happens if a process hangs or dies during execution of the critical region ? Can I release/clear this semaphore from another process (watchdog) to avoid a deadlock ? Does OS/2 provide any mechanism for this situation ? This question applies to both OS/2 1.3 and OS/2 2.0, because I cannot move to OS/2 2.0 right now. Thanks for any info, Ernst. -- ----------------------------------------------------------------------------- Ernst Kloecker phone: ++49-30-6181635 e-mail: ernst@cs.tu-berlin.de -----------------------------------------------------------------------------
Technical Details
Message-ID:
<1992Nov4.195019.27417@cs.tu-berlin.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!snorkelwacker.mit.edu!ai-lab!cs.tu-berlin.de!ernstShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!snorkelwacker.mit.edu!ai-lab!cs.tu-berlin.de!ernst From: ernst@opal.cs.tu-berlin.de (Ernst Kloecker) Subject: Can semaphore be released/cleared from other process ? Message-ID: <1992Nov4.195019.27417@cs.tu-berlin.de> Sender: news@cs.tu-berlin.de Organization: Techn. University of Berlin, Germany Date: Wed, 4 Nov 1992 19:50:19 GMT Lines: 18