This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Is the standard IO library thread safe?
- To: glibc-linux AT ricardo.ecn.wfu dot edu
- Subject: Is the standard IO library thread safe?
- From: Andy Tai <atai AT sdcc3.ucsd dot edu>
- Date: Thu, 16 Sep 1999 11:22:13 -0700 (PDT)
- Reply-To: glibc-linux AT ricardo.ecn.wfu dot edu
Hi, I wonder is the standard I/O library thread safe? For
example, I was using fprintf(stderr, ...) in multithreaded programs, and it
causes random crashes. After I add locks around these fprintf calls,
eeverything is fine.
I am using a default RedHat Linux 6.0 installation with glibc 2.1