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

  1. Path: sparky!uunet!oracle!unrepliable!bounce
  2. Newsgroups: comp.sys.amiga.programmer
  3. From: usenet@oracle.us.oracle.com (Oracle News Poster)
  4. Subject: Re: Semaphores and software interrupts
  5. Message-ID: <1992Nov6.165747.24043@oracle.us.oracle.com>
  6. Nntp-Posting-Host: mailseq.us.oracle.com
  7. Organization: Oracle Corp., Redwood Shores CA
  8. References: <1992Nov4.214012.8249@jato.jpl.nasa.gov> <36735@cbmvax.commodore.com>
  9. Date: Fri, 6 Nov 1992 16:57:47 GMT
  10. X-Disclaimer: This message was written by an unauthenticated user
  11.               at Oracle Corporation.  The opinions expressed are those
  12.               of the user and not necessarily those of Oracle.
  13. Lines: 11
  14.  
  15. In article <36735@cbmvax.commodore.com> mks@cbmvax.commodore.com (Michael Sinz) writes:
  16. >Semaphores are task-level semaphores.  As such, they have no protection
  17. >from being interrupted during the semaphore routines themselves and would
  18. >be very unsafe in an interrupt.  Also, as an interrupt, how would you hold
  19. >onto the semaphore (what task would be the owner?)
  20.  
  21. Indeed, and what would happen if you -couldn't- get the semaphore?  You
  22. are in interrupt code, right?  What exactly is it that gets put to
  23. sleep?  ;)
  24. David C. Navas                        dnavas@oracle.com
  25. Working for, but not speaking on behalf of, Oracle Corp.
  26.