Date: Wed, 29 Mar 2000 01:09:21 -0900 From: Russ Pagenkopf <russ.pagenkopf@uas.alaska.edu> To: freebsd-hackers@FreeBSD.ORG Subject: Killing threads Message-ID: <38E1D648.B691FC8D@uas.alaska.edu>
next in thread | raw e-mail | index | archive | help
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 <TalkLists@index-s.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38E1D648.B691FC8D>