Article View: news.software.nntp
Article #41308Re: NoCeM & INN2.3
From: bill davidsen
Date: Thu, 04 Nov 1999 00:00
Date: Thu, 04 Nov 1999 00:00
48 lines
3005 bytes
3005 bytes
In article <slrn8244io.42i.andrew+news@uk21.supernews.com>, Andrew <andrew@supernews.com> wrote: | In article <7vt2nm$dkv$1@newssvr02.news.prodigy.com>, bill davidsen wrote: | >In article <slrn821emt.edk.andrew+news@uk21.supernews.com>, | >Andrew <andrew@supernews.com> wrote: | > | >| The main problem with fcntl and threads is that fcntl locks don't | >| work between threads in the same process; any lock acquired via | >| fcntl belongs to the whole process, not to the calling thread. | > | >I assume you mean user level threads (MIT style) rather than kernel | >thread (Linux style). | | No, I mean threads as defined by the relevent standards. I missed the part in the POSIX description which indicated that threads must be (or can't be) user level. | If Linux has things called "threads" that don't share resources like file | descriptors, file locks, working directory etc., then they are nonstandard | and irrelevent to me. The issue is that MIT style threads can have up to a max of one processor mini-scheduled between all threads, while kernel threads may have all CPUs in the system running various threads. The issue isn't resource sharing per se. User level threads hide bad programming because only one can really run at a time, and they are not preempted. If a thread forgets to lock something it will run until it gives up the processor. Kernel level threads hide bad programming, at least with SMP, because many deadlocks don't show up if another thread can run on another processor, or id the current blocked thread is preempted and the blocking thread runs to an unlock point. I don't trust my thread code until I link with a user level library, kernel level library uniprocessor, and kernel level with SMP. I rarely find a bug which stops the program, but I do sometimes find unobvious performance issues. Quality of implementation issues. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
Technical Details
Message-ID:
<7vt6ij$h65$1@newssvr02.news.prodigy.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<3819A774.9C57FDCA@boerde.de> <slrn821emt.edk.andrew+news@uk21.supernews.com> <7vt2nm$dkv$1@newssvr02.news.prodigy.com> <slrn8244io.42i.andrew+news@uk21.supernews.com>Show Full Headers
Complete Article Headers
Message-ID: <7vt6ij$h65$1@newssvr02.news.prodigy.com> Subject: Re: NoCeM & INN2.3 Date: Thu, 04 Nov 1999 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <3819A774.9C57FDCA@boerde.de> <slrn821emt.edk.andrew+news@uk21.supernews.com> <7vt2nm$dkv$1@newssvr02.news.prodigy.com> <slrn8244io.42i.andrew+news@uk21.supernews.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 544604209 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr02.news.prodigy.com 941759891 17605 199.4.137.118 (4 Nov 1999 23:58:11 GMT) Organization: TMR Associates, Schenectady NY Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com