From owner-freebsd-hackers Wed Mar 29 2: 6:18 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from vali.uas.alaska.edu (vali.uas.alaska.edu [137.229.150.18]) by hub.freebsd.org (Postfix) with SMTP id C421B37BDC3 for ; Wed, 29 Mar 2000 02:06:13 -0800 (PST) (envelope-from russ.pagenkopf@uas.alaska.edu) Received: from 145-pm1.jdc.alaska.net [209.112.136.145] (HELO uas.alaska.edu) by vali.uas.alaska.edu (AltaVista Mail V2.0r/2.0r BL25r listener) id 0000_0070_38e1_d585_2f1c; Wed, 29 Mar 2000 01:05:57 -0900 Message-ID: <38E1D648.B691FC8D@uas.alaska.edu> Date: Wed, 29 Mar 2000 01:09:21 -0900 From: Russ Pagenkopf Reply-To: jnrp@uas.alaska.edu X-Mailer: Mozilla 4.7 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Killing threads Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Can anyone coment on the below with authority? I'm learning a bit about threads and I'm curious what the answer is. Thanks, rus --- "Vladimir Butenko, Stalker Software, Inc." wrote: >>Stefan Seiz wrote: [snip] >>To have it kill unneeded threads? > > It will kill "excessive" threads. AFAIR, it will start to kill if the > unemployment level is more then 1/3: if a thread finishes a job and the number > of unemployed threads waiting for a job is more than 1/3 of the Max number of > threads(channels) allowed for that service, the thread is not placed into the > wating pool, but is killed instead. > >>Is this recommended? > > That depends on OS. Killing threads is a dark area in many thread > implementations. We know that it is safe on Windows, Solaris, and looks like > safe on MacOSX. On other platforms - use on your own risk. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message