Code example for SynchronousQueue

Methods: poll

0
			} 
		} 
	} 
 
	private void runConsumer() { 
		this.array.poll();
	} 
	 
	private void runProducer() { 
		this.array.offer(0);
	} 
 
	@Override 
	public int numOfThreadOperations() { 
		return this.numOperationsOfThisThread;
	} 
}