----------------------------------------- (on server-express.q-bytes.com) This mail was scanned by Trend Micro InterScan VirusWall when leaving Quality Bytes
---------------------------------------------------------
Well, actually that was a dumb question. I tested pthread_detach (which was what I required) a few minutes after posting that message and it worked like a charm. The memory is freed very nicely. Thanks! Isaac (Itzik) Aaron Quality Bytes TEL: +972-3-952 3175 FAX: +972-3-952 3176 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Shane Kerr > Sent: Thursday, March 14, 2002 3:38 PM > To: [EMAIL PROTECTED] > Subject: Re: Claiming back memory resources after a thread function exits. > > > On 2002-03-14 11:52:21 +0200, Isaac Aaron wrote: > > > Every thread takes about 2K of VSize, and I'm returning a void. > > Do I still need to detach from it? > > It's your memory. But be aware the most POSIX thread implementations do > not allow the thousands of threads that Pth does, so no detaching or > joining with your threads will cause to you be unable to spawn new ones. > > -- > Shane > Carpe Diem > ______________________________________________________________________ > GNU Portable Threads (Pth) http://www.gnu.org/software/pth/ > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager (Majordomo) [EMAIL PROTECTED]
BEGIN:VCARD VERSION:2.1 N:Aaron;Isaac (Itzik) FN:Isaac (Itzik) Aaron ORG:Quality Bytes Software LTD TITLE:Head of Development TEL;WORK;VOICE:+972 (3) 952 3175 TEL;CELL;VOICE:+972 (53) 33 22 14 TEL;WORK;FAX:+972 (3) 952 3176 ADR;WORK:;;10 Moshe Levi st.;Rishon Lezziyon;;;Israel LABEL;WORK;ENCODING=QUOTED-PRINTABLE:10 Moshe Levi st.=0D=0ARishon Lezziyon=0D=0AIsrael URL: URL:http://www.q-bytes.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010814T082349Z END:VCARD
