From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 28 23:00:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0C5616A412 for ; Tue, 28 Nov 2006 23:00:42 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp2.utsp.utwente.nl [130.89.2.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22FBF43C9D for ; Tue, 28 Nov 2006 23:00:36 +0000 (GMT) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id kASN0box012331; Wed, 29 Nov 2006 00:00:37 +0100 From: Pieter de Goeje To: freebsd-hackers@freebsd.org Date: Wed, 29 Nov 2006 00:00:37 +0100 User-Agent: KMail/1.9.4 References: <456CAB12.9070507@u.washington.edu> <200611282302.08439.pieter@degoeje.nl> <456CBB09.10804@u.washington.edu> In-Reply-To: <456CBB09.10804@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611290000.37322.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Garrett Cooper Subject: Re: pthreads : questions about concurrency and lifetime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 23:00:42 -0000 On Tuesday 28 November 2006 23:41, Garrett Cooper wrote: > So that means no, after a function's definition is reached the > thread/resources stay in a semi-'alive' (maybe 'zombified') state?, or > does the kernel cleanup / reclaim all of the resources tied up with the > thread? > -Garrett If you detach the thread, it will properly clean up after it self, after the thread has finished running. -- Pieter