摘要 |
<p>A hardware lock unit (27) for limiting concurrent use of a shared resource, such as a memory (29) by a plurality of devices, such as processors (22, 23), in a program controlled system. In such a system, devices wishing to use a shared resource make a use request to the lock unit and wait for an answer. The hardware lock unit determines whether the resource is free for access by a device or whether the resource is busy being accessed by a device. When the resource is busy the requesting devices are caused to wait. When the resource becomes free, the lock unit hardware selects one of the requesting devices and responds to its request to grant it use of the resource. Additionally, the look unit may include hardware for preventing a lockable resource from being accessed by a device that is not its current owner and for preventing the current owner from accessing the resource more than a predetermined number of times.</p> |