Re: Multitasking and containers
- From: Georg Bauhaus <bauhaus@xxxxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 11:11:01 +0100
Maciej Sobczak wrote:
But reading from the protected object is not mutually exclusive (many readers are allowed) - so where's the gain? What's the difference between concurrent reads of, say, a Vector via protected object vs. direct access?
Supposing that some operations perform a write on the container,
for example while filling or updating,
then if there is any potential overlap of a read and a write,
the gain of protection is that none of the writes can ever interfere
with one of the read operations.
If there is no write after some point, I would say that "normal means
of protection" includes "no protection is necessary after this point".
-- Georg .
- References:
- Multitasking and containers
- From: Maciej Sobczak
- Multitasking and containers
- Prev by Date: Re: Type declarations problematic?
- Next by Date: Re: Multitasking and containers
- Previous by thread: Multitasking and containers
- Next by thread: Re: Multitasking and containers
- Index(es):
Relevant Pages
|