From: chrisf@netcom.com (Chris Forrest)
Subject: Re: third and pthread
Date: 1999/02/08 [thread overview]
Message-ID: <chrisfF6uI93.D6G@netcom.com> (raw)
In-Reply-To: 79mp0n$r2j$1@sunnews.cern.ch
Jean-Damien DURAND (jdurand@pcfarm14.cern.ch) wrote:
: Dear all,
: Would someone in here please explain me why, when compiling the following
: so-simple program:
: int main () {
: exit(0);
: }
: with -pthread option, and intrumenting it with "third -env threads";
: [dxplus05] ~ % cc -pthread -o ./testit ./test.c
: [dxplus05] ~ % atom -tool third -env threads testit
: I have the following in the 3log file:
: ------------------------------------------------------------------------
<Third report removed>
: What misunderstanding or mistake am I doing ? Thanks a lot for any advice...
: Cheers, Jean-Damien.
: FYI:
: [dxplus05] ~ % uname -a
: OSF1 dxplus05 V4.0 564 alpha
: [dxplus05] ~ % what `which atom` | tail -1
: $RCSfile: strerror.c,v $ $Revision: 4.2.8.3 $ (DEC) $Date: 1994/04/05 15:48:37 $
Jean-Damien,
-NOTE: This is IMHO and can not be shown to be true-
What you are seeing is memory being reserved (or used) by the pthreads
library and by the libc library as well. Third reports memory that is
allocated, but not released. In the case of the libraries, they are
setting up gloabl variables of somesort. These are used for many different
things (speed of execution probably being one). This is one of
the difficulties with using third.
Hopes this helps,
Chris
next prev parent reply other threads:[~1999-02-08 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-08 5:00 third and pthread Jean-Damien DURAND
1999-02-08 5:00 ` Chris Forrest [this message]
1999-02-15 5:00 ` John P Williams
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