From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds To: dbailey27@ameritech.net Cc: 9fans@cse.psu.edu Subject: Re: [9fans] Re: Threads: Sewing badges of honor onto a Kernel In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Thu, 26 Feb 2004 23:04:48 -0800 Topicbox-Message-UUID: fd750346-eacc-11e9-9e20-41e7f4b1d025 On Fri, 27 Feb 2004 dbailey27@ameritech.net wrote: > > I'm not sure I can agree here. Arguments are not meant for the scope of an > entire process, but for the initialization of a program's state. Wrong. You have zero basis for your assertion, and it's simply bogus. Would you say that the process environment[] array is also only applicable to the first thread? But it doesn't matter. Regardless, threads should see each others stacks. > Can you elaborate on your synchronization example, please? 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. But hey, I'm not interested in trying to convince you. Feel free to think I'm wrong. Linus