From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d944c68762c64bbf X-Google-Attributes: gidfee84,public From: chrisf@netcom.com (Chris Forrest) Subject: Re: third and pthread Date: 1999/02/08 Message-ID: #1/1 X-Deja-AN: 441996001 Sender: chrisf@netcom2.netcom.com References: <79mp0n$r2j$1@sunnews.cern.ch> Organization: ICGNetcom Newsgroups: comp.unix.osf.osf1 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: : ------------------------------------------------------------------------ : 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