🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2896

OS/2 libraries thread-safe ?

#2896
From: Ernst Kloecker
Date: Wed, 16 Dec 1992 22:13
20 lines
1098 bytes
Hi,

what precautions do I have to take when calling C-library functions from
different threads in one process ?

What happens to static variables like 'errno' ?

Can I safely call '...printf()' from different threads ?

Or are the only safe functions the OS-functions in 'bsedos.h' ?

Or are even those functions not completely thread-safe ?


Thanks for any info, Ernst.
--

-----------------------------------------------------------------------------
Ernst Kloecker      phone: ++49-30-6181635      e-mail: ernst@cs.tu-berlin.de
-----------------------------------------------------------------------------
Technical Details
Message-ID: <1992Dec16.221352.26031@cs.tu-berlin.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!spool.mu.edu!uwm.edu!caen!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!cs.tu-berlin.de!ernst

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!spool.mu.edu!uwm.edu!caen!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!cs.tu-berlin.de!ernst
From: ernst@opal.cs.tu-berlin.de (Ernst Kloecker)
Subject: OS/2 libraries thread-safe ?
Message-ID: <1992Dec16.221352.26031@cs.tu-berlin.de>
Sender: news@cs.tu-berlin.de
Organization: Techn. University of Berlin, Germany
Date: Wed, 16 Dec 1992 22:13:52 GMT
Lines: 20