home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6223 < prev    next >
Encoding:
Text File  |  1992-11-05  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: 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
  3. From: ernst@opal.cs.tu-berlin.de (Ernst Kloecker)
  4. Subject: Can semaphore survive process ?
  5. Message-ID: <1992Nov5.160828.385@cs.tu-berlin.de>
  6. Sender: news@cs.tu-berlin.de
  7. Organization: Techn. University of Berlin, Germany
  8. Date: Thu, 5 Nov 1992 16:08:28 GMT
  9. Lines: 23
  10.  
  11. Hi,
  12.  
  13. I want to use semaphores to protect critical regions in a multi tasking
  14. application. A problem is that these tasks are only started when an external
  15. event occurs (phone rings) and they are stopped by another external event
  16. (hang up). Is it possible to establish semaphores which stay in effect as
  17. long as the whole application (which consistes of sveral processes) is
  18. running ?
  19.  
  20. Could I accomplish that by creating these semaphores in a "semaphore
  21. manager process" which could also fulfill a watchdog function ?
  22.  
  23. Or could this kind of semaphore be created in shared memory ?
  24.  
  25. This question applies to both OS/2 1.3 and OS/2 2.0.
  26.  
  27.  
  28. Thanks for any info, Ernst.
  29. --
  30.  
  31. -----------------------------------------------------------------------------
  32. Ernst Kloecker      phone: ++49-30-6181635      e-mail: ernst@cs.tu-berlin.de
  33. -----------------------------------------------------------------------------
  34.