in reply to multithread and STDOUT locking

Try:
#!/usr/bin/perl use strict; use warnings; select STDOUT; $| = 1;

Replies are listed 'Best First'.
Re^2: multithread and STDOUT locking
by ikegami (Patriarch) on May 06, 2011 at 05:30 UTC
    Flushes aren't guaranteed to be atomic, so that's not guaranteed to work even if you using a single single print per message and the messages don't exceed 4k in size.