Queues stdout from multiple threads and displays line by line. Used in multithread applications.