Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Uncle Steve Newsgroups: comp.programming.threads Subject: Re: Clarification on the applicability of compile-time optimization to a struct variable which encompasses a mixture of fields declared as volatile and non-volatile individually Date: Sat, 07 Jul 2012 05:09:10 -0400 Organization: A noiseless patient Spider Lines: 49 Message-ID: <92f33e55bd75857-aeca9@gmail.com> References: <94eafd27-6aba-4a17-9403-d42912312e6c@googlegroups.com> <0.8f83cddfeac55b9f2de1.20120705232249BST.87k3yhalvq.fsf@bsb.me.uk> <7ee0b658ce2dc96-3111f@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Injection-Info: mx04.eternal-september.org; posting-host="M1JqkNNJU2aX/HiSUuiK1A"; logging-data="4878"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mYdCI8wIh5wHesoGxnqrt" User-Agent: nn 6.7.3 Content-Length: 1683 Cancel-Lock: sha1:aUIjuN3jynGGjdYBx53XVZSNuF4= Xref: csiph.com comp.programming.threads:947 On Sat, Jul 07, 2012 at 08:16:53AM -0400, Eric Sosman wrote: > On 7/6/2012 2:33 PM, Uncle Steve wrote: > >On Fri, Jul 06, 2012 at 06:11:28PM -0400, Eric Sosman wrote: > >>[...] > >> Although the latest "C11" Standard adds some multi-threading > >>support, [...] > >> > >> [...]I suggest you visit comp.programming.threads, > >>a newsgroup devoted to multi-threading issues. There you will learn > >>that `volatile' is neither necessary *nor* sufficient in connection > >>with variables shared between threads. [...] > > > >Is there are C standard threading framework? > > See above. > > >Threaded code is a de-facto reality in today's multi-core environment. > >Save for the embedded sector, most systems will run threads in > >parallel, and that is that. C has to recognize this watershed moment > >in the refinement of the language. > > See above. > > >What is it about the volatile attribute that makes it > >insufficient in your mind to the problem presented by threaded code? > > "Then Kolokolo Bird said, with a mournful cry, 'Go to the banks of > the great grey-green, greasy Limpopo River -- er, that is, the G,G-G,G > comp.programming.threads newsgroup -- all set about with fever-trees, > and find out.'" > > By "go," I mean "go away," as in "Don't continue this thread in > comp.lang.c unless you specifically wish to discuss the threading > features of C11." Follow-ups set. Your message excells as an example of myopic religious orthodoxy. I'm not actually suggesting that there should be changes to the standard, so I don't quite understand why you seem so threatened. Regards, Uncle Steve -- The moon has never been closer.