On Mon, Mar 15, 2010 at 5:52 AM, Matthew Mondor <span dir="ltr"><<a href="mailto:mm_lists@pulsar-zone.net">mm_lists@pulsar-zone.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Since my local tree keeps using the FILE streams in threaded mode and<br>
I've not exprienced any problems (using NetBSD-5), is this related to<br>
an OS-specific issue with stdio streams and threads?<br></blockquote></div><br>Oh, no, the problem goes beyond that. FILE streams are locking and no two threads can operate on the same FILE. Now suppose that thread A is reading from stdin using a FILE. Thread B signals an error and enters the debugger. It tries to read from stdin but it is locked. What to do?<br clear="all">
<br>Juanjo<br><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>