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