home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 750 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  725 b 

  1. Path: vision.wonder.ca!usenet
  2. From: paulf@wonder.ca (paulf)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Exec Semaphores
  5. Date: 10 Jan 1996 20:53:52 GMT
  6. Organization: WCi Information Technology Division
  7. Message-ID: <390.6583T950T852@wonder.ca>
  8. NNTP-Posting-Host: paul.wonder.ca
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  10.  
  11. Does anyone know how the OS semaphores handle the following
  12. situation:
  13.  
  14. Lock Shared from Task 1.
  15. Lock Exclusive From Task 2.
  16. Lock Shared from Task 3.
  17. Unlock from Task 1.
  18. ...
  19.  
  20. Will the OS let Task 3 into it's critical section straight away,
  21. or will it stop it from entering until the exclusive lock from
  22. Task 2 is serviced?  The autodocs don't mention what would happen
  23. in a case like this.
  24.  
  25.