home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15485 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.6 KB

  1. Path: sparky!uunet!ogicse!hp-cv!sdd.hp.com!elroy.jpl.nasa.gov!jato!jdickson
  2. From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Semaphores and software interrupts
  5. Message-ID: <1992Nov6.180031.21994@jato.jpl.nasa.gov>
  6. Date: 6 Nov 92 18:00:31 GMT
  7. Article-I.D.: jato.1992Nov6.180031.21994
  8. References: <1992Nov4.214012.8249@jato.jpl.nasa.gov> <36735@cbmvax.commodore.com>
  9. Distribution: comp.sys.amiga.programmer
  10. Organization: Jet Propulsion Laboratory
  11. Lines: 25
  12.  
  13. In article <36735@cbmvax.commodore.com> mks@cbmvax.commodore.com (Michael Sinz) writes:
  14. >jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
  15. >>
  16. >>    Hi all. Is AttemptSemaphore/ReleaseSemaphore safe from within a
  17. >>software interrupt?
  18. >
  19. >No...
  20. >
  21. >Semaphores are task-level semaphores.  As such, they have no protection
  22. >from being interrupted during the semaphore routines themselves and would
  23. >be very unsafe in an interrupt. Also, as an interrupt, how would you hold
  24. >onto the semaphore (what task would be the owner?)
  25. >
  26. Never mind. In trying to answer these questions I realized how absurd the
  27. idea was. Thanks for answering.
  28.  
  29. >/----------------------------------------------------------------------\
  30. >|      /// Michael Sinz  -  Senior Amiga Systems Engineer              |
  31. >|     ///                   Operating System Development Group         |
  32. >|    ///   BIX:  msinz      UUNET:  mks@cbmvax.commodore.com           |
  33. >|\\\///                                                                |
  34. >| \XX/     "I think not." said Ren'e Descartes, then he vanished.      |
  35. >\----------------------------------------------------------------------/
  36.  
  37. jeff
  38.