Re: protected type interrupts
- From: Jean-Pierre Rosen <rosen@xxxxxxxxx>
- Date: Fri, 25 Aug 2006 08:42:53 +0200
REH a écrit :
I don't understand. How can a procedure within a protected objectThe goal of the "potentially blocking" rule is to prevent *unbounded* blocking. Short blockings, such as those require to provide mutual exclusion, are OK, because thay are bounded.
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?
Think of it this way: if it can be implemented on a multi-processor by a simple spin-lock, it is not potentially blocking. If it requires a queue, and being awaken depends on some non determinable condition, it is potentially blocking.
--
---------------------------------------------------------
J-P. Rosen (rosen@xxxxxxxxx)
Visit Adalog's web site at http://www.adalog.fr
.
- 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: protected type interrupts
- Previous by thread: Re: protected type interrupts
- Next by thread: Re: protected type interrupts
- Index(es):