From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [9fans] Re: Threads: Sewing badges of honor onto a Kernel From: Dave Lukes To: Linus Torvalds Cc: 9fans <9fans@cse.psu.edu> In-Reply-To: References: <290c102a9496a5f2a33af7922d24382e@yourdomain.dom> <1077884597.21772.21.camel@zevon> Content-Type: text/plain Message-Id: <1077899988.21772.196.camel@zevon> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Date: Fri, 27 Feb 2004 16:39:48 +0000 Topicbox-Message-UUID: 00254f6a-eacd-11e9-9e20-41e7f4b1d025 > Hmm.. I answered it the first time around. I said: the kernel using it is an implementation detail. You said: > Look in the kernel for "struct > completion", and you will see it. i.e. you've built the code to fit the thread implementation. I stand by what I said. I said: user mode using it: show me the example! You said: > In user space, I don't work with threaded programs, but if I were to > write > one, I'd do this all the time. i.e. no example. > The problem is that communication is almost never one-way, except > apparently in the thread we're involved right now. Ha ha very funny: let me just recover from my ruptured abdomen ... Now let me point out that, in spite of your copious code inclusion, you have not yet provided any real examples. Also, communication in programs is often one-way (that's why ANSI invented "const":-). > Hey, I don't know about you, but pretty much every _single_ argument > parser I've ever done tends to fill in some data structure with the > pointer to the argument in question. Oh, yes, of course, silly me: Real Programmers always parse their arguments in a separate thread. > I'm not into user-mode - user mode is for whimps who can't handle the > truth (yeah yeah, I know, I'm crazy, but I just find it more interesting > to interact with the hardware). If it's PC hardware, that _is_ crazy:-). > The thing is, I don't see why you are even arguing. There are zero > advantages to a private stack, and there are tons of disadvantages. So > what's your beef? "There are zero disadvantages to incorporating an RSX-11M emulator in the kernel, and there are tons of advantages. What's your beef?" Also, as a mantra: the more shared data you have, the more problems you have. One other detail: as far as I can see, your examples all use shared memory as a cheap substitute for message passing: why? Cheers, Dave.