question: @ SuppressWarnings ( "unchecked" ) public synchronized T dequeueTask ( ) throws InterruptedException { while ( _data . isEmpty ( ) ) { if ( ! _closedInput ) wait ( ) ; else return ( T ) NO_MORE_TASKS ; } T t = _data . removeFirst ( ) ; notify ( ) ; return t ; }
target:  Synchronized read and delete from the top of the FIFO queue.