From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0374a3982e4b359e09ce2a3be9192f06@yourdomain.dom> To: torvalds@osdl.org, 9fans@cse.psu.edu Subject: Re: [9fans] Re: Threads: Sewing badges of honor onto a Kernel From: dbailey27@ameritech.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 27 Feb 2004 02:06:57 -0500 Topicbox-Message-UUID: fd873124-eacc-11e9-9e20-41e7f4b1d025 > Wrong. You have zero basis for your assertion, and it's simply bogus. Clean, logical programming isn't a sound basis? Or is it only not a sound basis because you've decided so? Saying that I have zero basis for my assertion is a bit bogus, in it self, don't you think? I CC'd you my original email to 9fans because I was hoping to understand your logic behind the rfork() comments, not to start a flame war. > Would you say that the process environment[] array is also only applicable > to the first thread? Yes. That's why we have env(3) in Plan 9. So each thread can alter and read the environment, globally, in a process. > There are tons of examples in the linux kernel. Search for any use of > "struct completion" - most of them are allocatied on a threads stack > (which is obviously distinct between different threads), and other threads > and interrupts will use that data structure to wake up the thread. Okay, but is there a reason why it *needs* to be on the stack? What's the rationale behind this usage. > But hey, I'm not interested in trying to convince you. Feel free to think > I'm wrong. Well, I'm hoping to determine what really is the best thing for OS design, as a whole. It isn't in my interest to determine who is right or wrong, only what makes sense universally. If we are really all here to try and design code that works the best it can, that's all that matters. Ego is irrelevant and only gets in the way of those discoveries that can really help us materialize the better code. Even if there are no more comments on this thread, I still learned a lot by asking the questions. If that stirrs up some contraversy, so be it. I'd rather learn and ask questions than stay silent and experience nothing. Don (north_)