From: Jerry Feldman <gaf-noSPAM@blu.org>
Subject: Re: Thread safe malloc in Tru64?
Date: Thu, 20 Nov 2003 16:30:31 GMT [thread overview]
Message-ID: <20031120113030.7dd366ed.gaf-noSPAM@blu.org> (raw)
In-Reply-To: bpii1l$2muv$1@ulysses.noc.ntua.gr
On Thu, 20 Nov 2003 16:11:01 +0200
"Ioannis E. Venetis" <iev@hpclab.ceid.upatras.gr> wrote:
> Hello,
>
> I am trying to create a library that will run, among other
> architectures, on Tru64/Alpha systems.
> Of course, this library has a machine independant (the same for all
> architectures) and a machine
> dependant part. For some reasons, I chose to use the
> thread_create/thread_get_state/
> thread_set_state/thread_resume/thread_terminate interface in the
> machine dependant part of the
> library to manage kernel-level threads on Tru64 Unix systems. I am
> mentioning it in case this has
> something to do with the problem I will describe.
While I am not purporting to solve your problem, but all libc functions,
including malloc(3), were made threadsafe (I believe) as of Tru64
(Digital Unix) 4.0.
When compiling use -pthread rather than -lpthread or -lpthreads.
Additionally, libc_r is nothing more than a symlink to libc.
Also be aware that the Tru64 thread package uses a combination of kernel
threads and user threads.
Try using HP's native compiler for your testing. Part of your problem
might be that gcc 2.95 is out of date.
--
Jerry Feldman <gaf-nospam-at-blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
next prev parent reply other threads:[~2003-11-20 16:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-20 14:11 Thread safe malloc in Tru64? Ioannis E. Venetis
2003-11-20 16:30 ` Jerry Feldman [this message]
2003-11-21 13:16 ` David Butenhof
2003-11-25 16:16 ` Ioannis E. Venetis
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