Re: protected type interrupts
- From: "Jeffrey R. Carter" <spam.not.jrcarter@xxxxxxxxxxxxxxxx>
- Date: Thu, 24 Aug 2006 23:55:39 GMT
REH wrote:
I don't understand. How can a procedure within a protected object
modify data internal to the object in a thread-safe way without the
potentially blocking effect of enforcing mutual exclusion? If one task
is "using" the object, and another calls one of the object's
procedures, would the second task not be blocked until the first one
exits the object?
In the terms of the ARM, mutual exclusion is not considered potentially blocking. Only waiting for data synchronization is potentially blocking. Since protected actions are supposed to be short and quick, and cannot perform potentially blocking operations, mutual exclusion cannot delay a task for very long. On the other hand, waiting for an entry barrier to become true can take forever.
Many external actions, such as I/O, are also considered potentially blocking.
--
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python & the Holy Grail
07
.
- References:
- protected type interrupts
- From: REH
- Re: protected type interrupts
- From: Jean-Pierre Rosen
- Re: protected type interrupts
- From: REH
- Re: protected type interrupts
- From: Adam Beneschan
- Re: protected type interrupts
- From: REH
- protected type interrupts
- Prev by Date: Re: protected type interrupts
- Next by Date: Re: ANNOUNCE: Avatox 1.0 is now available
- Previous by thread: Re: protected type interrupts
- Next by thread: Re: protected type interrupts
- Index(es):