It's a problem that I haven't run into, despite doing something similar. Without wanting to contradict the excellent advice thus far, my suggestion would be to create an 'IO' thread - feed it via a Queue, and have it simply handle serialising the input/output operations. Which is especially significant when doing file writes, but I'd imagine similar problems are applicable, since you've still got buffering to contend with.
In reply to Re: Threads Printing Issue - Output Mangled / Term Crashing
by Preceptor
in thread Threads Printing Issue - Output Mangled / Term Crashing
by bigbot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |