home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!hp-cv!sdd.hp.com!elroy.jpl.nasa.gov!jato!jdickson
- From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Semaphores and software interrupts
- Message-ID: <1992Nov6.180031.21994@jato.jpl.nasa.gov>
- Date: 6 Nov 92 18:00:31 GMT
- Article-I.D.: jato.1992Nov6.180031.21994
- References: <1992Nov4.214012.8249@jato.jpl.nasa.gov> <36735@cbmvax.commodore.com>
- Distribution: comp.sys.amiga.programmer
- Organization: Jet Propulsion Laboratory
- Lines: 25
-
- In article <36735@cbmvax.commodore.com> mks@cbmvax.commodore.com (Michael Sinz) writes:
- >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?)
- >
- Never mind. In trying to answer these questions I realized how absurd the
- idea was. Thanks for answering.
-
- >/----------------------------------------------------------------------\
- >| /// 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. |
- >\----------------------------------------------------------------------/
-
- jeff
-