From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-03-01 11:53:55
Kevin Atkinson wrote:
> This is a repost of my Lock Classes. Hopefully this time I will get some
> constructive feedback. These classes have the following features.
> 1) The ability to acquire a lock and release it when the object
> goes out of scope effectively implemented the "Monitor" concept.
For your information, the REAL "monitor concept" is this:
(9.1 Protected Types)
-- "Protected types provide an extremely efficient mechanism; the ability to use the thread of control of one task to execute a protected operation on behalf of another task reduces the overhead of context switching compared with other paradigms. Protected types are thus not only much more efficient than the use of an agent task and associated rendezvous, they are also more efficient than traditional monitors or semaphores in many circumstances." --9.1.3 Efficiency of Protected Types