home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!jato!jdickson
- From: jdickson@jato.jpl.nasa.gov (Jeff Dickson)
- Subject: Re: Semaphores and software interrupts
- Message-ID: <1992Nov6.230903.24634@jato.jpl.nasa.gov>
- Organization: Jet Propulsion Laboratory
- References: <1992Nov4.214012.8249@jato.jpl.nasa.gov> <36735@cbmvax.commodore.com> <1992Nov6.165747.24043@oracle.us.oracle.com>
- Date: Fri, 6 Nov 1992 23:09:03 GMT
- Lines: 29
-
- In article <1992Nov6.165747.24043@oracle.us.oracle.com> usenet@oracle.us.oracle.com (Oracle News Poster) writes:
- >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
-
- AttemptSemaphore would return a zero (false). ObtainSemaphore puts you to
- sleep if the semaphore is not readily obtainable. Actually, I thought it
- might be a nifty thing to be able to have some way of knowing it was ok to
- muck with public data. I planned to have the software interrupt generated
- as result of a message arriving at a message port (PA_SOFTINT).
-
- mks@cbmvax.commodore.com (Michael Sinz) writes:
-
- >how would you hold onto the semaphore (what task would be the owner?)
-
- Okay, Ok....It just an idea (A dumb idea yes)
-
- >David C. Navas dnavas@oracle.com
- >Working for, but not speaking on behalf of, Oracle Corp.
-
- Jeff
-
-
-
-
-