Re: Multitasking and containers



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 .



Relevant Pages

  • RE: Password Protection
    ... That's like asking how to prevent viruses without virus protection. ... which is prevent keyloggers. ... interaction with one of our expert instructors. ... Gain the in-demand skills of ...
    (Security-Basics)
  • Re: Help me buy VHF/UHF television antenna? Cant decide!
    ... UHF gain, it has no gain and no protection against multipath on the VHF ... higher gain antenna then add attenuators or tilt ... What channel has the Rifleman and Andy Griffith still? ...
    (rec.radio.amateur.antenna)
  • Re: Identity
    ... Blackbirds typically migrate in flocks of mixed species. ... and gain the protection of numbers. ...
    (rec.birds)
  • Re: Gaa!!! (throwbacks!)
    ... I started at level 33 and succeeded just *once* to gain a level. ... to lose nine points of protection. ... Now at level 1 preparing for the final challenge... ... Janis ...
    (rec.games.roguelike.nethack)
  • Re: Task vs Protected Type
    ... You could use one of both example, since it's the same purpose with some GetObject and ReleaseObject enties/procedure in a task or in a protected. ... For data protection, a protected object is usually better (a semaphore protects its state information). ...
    (comp.lang.ada)