home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!mks
- From: mks@cbmvax.commodore.com (Michael Sinz)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Semaphores and software interrupts
- Message-ID: <36735@cbmvax.commodore.com>
- Date: 5 Nov 92 21:16:55 GMT
- References: <1992Nov4.214012.8249@jato.jpl.nasa.gov>
- Reply-To: mks@cbmvax.commodore.com (Michael Sinz)
- Distribution: comp.sys.amiga.programmer
- Organization: Commodore, West Chester, PA
- Lines: 19
-
- jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
- >
- > Hi all. Is AttemptSemaphore/ReleaseSemaphore safe from within a
- >software interrupt?
-
- No...
-
- 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?)
-
- /----------------------------------------------------------------------\
- | /// Michael Sinz - Senior Amiga Systems Engineer |
- | /// Operating System Development Group |
- | /// BIX: msinz UUNET: mks@cbmvax.commodore.com |
- |\\\/// |
- | \XX/ "I think not." said Ren'e Descartes, then he vanished. |
- \----------------------------------------------------------------------/
-