in reply to Re: Threads question
in thread Threads question
It's not a buffering issue. You have two threads trying to access the same resource (STDOUT). Whenever that happens, you have to use a locking mechanism to ensure a thread is done with the resource before another thread can use it.