From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,4753a27d8ceddc44 X-Google-Attributes: gid109fba,public X-Google-Thread: f678f,4753a27d8ceddc44 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-02-22 12:22:04 PST Xref: sparky comp.lang.c++:21569 comp.unix.osf.misc:131 Newsgroups: comp.lang.c++,comp.unix.osf.misc Path: sparky!uunet!amdahl!news.fai.com!news.ossi.com!agate!howland.reston.ans.net!gatech!rpi!ees1a0.engr.ccny.cuny.edu!sci.ccny.cuny.edu!psinntp!psinntp!ibism!gjb From: gjb@fig.citib.com (Greg Brail) Subject: Re: Thread-safe libraries for C++? Message-ID: Sender: news@fig.citib.com Organization: Citibank IBISM References: <1993Feb12.184345.19220@walter.bellcore.com> <1993Feb17.181553.499@netcom.com> <1993Feb18.143708.19048@maths.tcd.ie> Date: Mon, 22 Feb 1993 20:22:04 GMT In article <1993Feb18.143708.19048@maths.tcd.ie> afcondon@maths.tcd.ie (Andrew Condon) writes: >My $0.02: >Everyone following-up so far has used cout as an example of a thread unsafety >so I just thought I would mention (from direct experience) that I think the >thorniest problem with non-thread safe libs concerns memory management, ie >new and delete. "new" and "delete" work fine if malloc and free are implemented in a thread-safe manner. The DCE implementations I've used provide thread- safe versions of malloc and free in the libraries. Therefore, C++ code has no trouble calling new and delete in a multithreaded program. greg -- Greg Brail ------------------ Citibank -------------------- gjb@fig.citib.com lose (lOOz) v. 1. a. To be unable to find; mislay. b. To incur the deprivation of, as by negligence or accident. 2. To be unable to maintain, sustain, or keep. 3. The most commonly misspelled word on Usenet.