Re: threads blocking output on windows

2004-11-15 Thread Mathieu Longtin
My guess is it's a function of the language. If I write an equivalent program in python, the behavior on windows is totally ordered, unlike perl. So my guess is there is a problem with perl's thread implementation in windows. I've also noticed that if I start a thread in a perl program that is qui

Re: threads blocking output on windows

2004-11-13 Thread John W. Kennedy
$Bill Luebkert wrote: > Mathieu Longtin wrote: >>STDERR is unbuffered by default (that's why I used it), and > Supposed to be. Remember this is not UNIX. I don't assume. And remember that it's not a function of the operating system anyway, but of the language. (In this case, both Perl and the C

Re: threads blocking output on windows

2004-11-12 Thread $Bill Luebkert
Mathieu Longtin wrote: > STDERR is unbuffered by default (that's why I used it), and Supposed to be. Remember this is not UNIX. I don't assume. > apparently the threads are executing when they're supposed > to, just not printing as they go. Also remember that you're not dealing with the UNIX

Re: threads blocking output on windows

2004-11-12 Thread Mathieu Longtin
STDERR is unbuffered by default (that's why I used it), and apparently the threads are executing when they're supposed to, just not printing as they go. --- $Bill Luebkert <[EMAIL PROTECTED]> wrote: > A couple of things to try. 1) Try opening a file for > append in > each thread and write your o

Re: threads blocking output on windows

2004-11-11 Thread $Bill Luebkert
Mathieu Longtin wrote: > I'm trying to use threads, but it seems threads are > blocking the output on windows. > > I've included a sample program. It starts two threads, and > then three threads proceed to print the time elapsed since > the beginning of the process. > > On Windows, the two threa

threads blocking output on windows

2004-11-11 Thread Mathieu Longtin
I'm trying to use threads, but it seems threads are blocking the output on windows. I've included a sample program. It starts two threads, and then three threads proceed to print the time elapsed since the beginning of the process. On Windows, the two thread print all their output when they finis