DescriptionThe Mutex object provides a mechanism for coordination over shared resources by providing a mechanism for mutual exclusion. An actor (a process) that wishes to posess exclusive access to a resource first invokes the mutex object. On return, the actor "owns" the mutex object, and holds a "relinquish" key to the mutex. When the actor has completed it's operations, it calls the relinquish key to allow other actors to proceed. It should be emphasized that the exclusion applies only to those processes that make use of the mutex object voluntarily. The mutex object provides no mechanism for mutual exclusion among non-cooperating users. A mutex object has two keys: the mutex request key, which is long lived, and the mutex release key, which lasts for the duration of a single exclusion. Operations
Copyright 1998 by Jonathan Shapiro. All rights reserved. For terms of redistribution, see the GNU General Public License |