Newsgroups: comp.os.os2.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!unixg.ubc.ca!cheddar.ucs.ubc.ca!ballard From: ballard@cheddar.ucs.ubc.ca (Alan Ballard) Subject: Re: OS/2 C compiler Message-ID: <1991Apr21.172950.19634@unixg.ubc.ca> Keywords: OS/2 'C' Sender: news@unixg.ubc.ca (Usenet News Maintenance) Nntp-Posting-Host: cheddar.ucs.ubc.ca Organization: Computing Services, University of British Columbia References: <1581@integow.uucp> <1991Apr20.190744.6675@unixg.ubc.ca> <1991Apr21.083505.22743@mathrt0.math.chalmers.se> Date: Sun, 21 Apr 1991 17:29:50 GMT In article <1991Apr21.083505.22743@mathrt0.math.chalmers.se> d9mikael@dtek.chalmers.se (Mikael Wahlgren) writes: > >Note that some C-libraries are NOT reentrant. > All the C libraries handle reentrancy across processes, as far as I know (they have "instance data" allocated for each process). However, it is possible to have problems with multiple threads because there isn't a separate copy of this data for each thread. For example, a static I/O buffer can cause problems if two threadsin the same process do I/O. There is a multi-thread version of the standard library to deal with this. Alan Ballard | Internet: ballard@ucs.ubc.ca University Computing Services | Bitnet: USERAB1@UBCMTSG University of British Columbia | Phone: 604-822-3074 Vancouver B.C. Canada V6R 1Z2 | Fax: 604-822-5116