From: gjb@fig.citib.com (Greg Brail)
Subject: Re: Thread-safe libraries for C++?
Date: Mon, 22 Feb 1993 20:22:04 GMT [thread overview]
Message-ID: <C2v9wt.Kz5@fig.citib.com> (raw)
In-Reply-To: 1993Feb18.143708.19048@maths.tcd.ie
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.
next prev parent reply other threads:[~1993-02-22 20:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-02-12 18:43 Thread-safe libraries for C++? Mike Doel
1993-02-12 12:22 ` Jon C. R. Bennett
1993-02-13 18:17 ` Pete Becker
1993-02-14 22:26 ` Andrew Walduck
1993-02-12 20:40 ` Michael J. Grier
1993-02-16 17:54 ` Jim Robinson
1993-02-16 23:14 ` Michael J. Grier
1993-02-18 2:51 ` Michael Joosten
1993-02-18 22:05 ` Greg Brail
1993-02-16 22:29 ` Bob Martin
1993-02-17 18:15 ` John Nagle
1993-02-18 14:37 ` Andrew Condon
1993-02-22 20:22 ` Greg Brail [this message]
1993-02-16 22:30 ` Greg Brail
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox