摘要 |
PURPOSE:To avoid the conflict for acquisition and release of a buffer among processors by always keeping a buffer left when buffers are acquired. CONSTITUTION:The number of ICB301 or buffers 302 which are presently chained with a queue is not controlled by a single variable but by two variables, i.e., a release counter and an acquisition counter. In an initial mode the release counter is set equal to the number of all ICB/buffers together with the acquisition counter set at 0 respectively. Then the acquisition counter is increased every time the ICB/buffer is acquired. While the release counter is increased for each release. Thus the number of ICB/buffers which are presently chained with a queue can be obtained from the values of both counters. Then one or more units of ICB301 or buffer 302 are left when the ICB301 or the buffer 302 are acquired from the queue.
|