in reply to Re: threads on Windows
in thread threads on Windows
Confirmed that adding sleep to my text input thread resolves the issue. I don't get any significant behavioral change w/ closing STDIN, so I conclude that the issue is that <> blocks (waiting on input) while the main thread is blocked at async (waiting for a free control), resulting in a race condition whenever the IO thread receives a line. The *NIX box has an unfair advantage here since it's running off a quad core, thus it has enough control to allow three threads at once. Since my ultimate plan was replacing the STDIN reading thread with a GUI thread, I'll have to see how it behaves with regard to control issues (I'm seeing run-time thread safety determination in my future...).
Thanks so much for your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: threads on Windows
by gone2015 (Deacon) on Feb 12, 2009 at 17:21 UTC | |
by kennethk (Abbot) on Feb 12, 2009 at 17:33 UTC |