Class Queue implements queue objects and has the methods described below. This class can be derived from in order to implement other queue organizations (e.g. stack) but the inheritable interface is not described here. See the source code for details. The public methods are:
1
if the queue is empty, 0
otherwise. Because
of multithreading semantics, this is not reliable.
1
if the queue is full, 0
otherwise. Because of
multithreading semantics, this is not reliable.
put(item, 0)
.
get(0)
.