Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: [C/POSIX] pthread_exit() Date: Fri, 22 Jul 2016 10:28:31 -0700 Organization: None to speak of Lines: 30 Message-ID: References: <16443da7-cef3-04d5-ced6-1fb40fd05b64@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="3845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Xy6eKjE1lgrX9UHs7fsMc" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:5CABIxfCpHYt6OFhZk+naB2yK1k= sha1:fKQalBYl5RBRHTXXcBrhbdj4JcY= Xref: csiph.com comp.lang.c:90794 Randy Howard writes: > On 7/20/16 12:42 PM, James R. Kuyper wrote: [...] >> C2011 added the new header, and a lot of features to support >> multi-thread programs. If you were to re-writr this program to make use >> of rather than , then the corresponding question >> about thrd_exit() could be asked here, in a reasonable expectation that >> someone here might be able to answer it. > > I can't think of a single reason why anyone would prefer to use that > ridiculous stuff in C11 for threading. pthreads is already there and > well vetted. I think the idea is that would be supported on systems that don't have POSIX threads. For example, it might be implemented on top of Windows threads in a Windows implementation. (There seems to be *some* support for POSIX threads on Windows, but using an interface defined by the C standard would IMHO be better.) Support for C11 seems to be rather slow in appearing, so we'll see when and whether that goal is met. Threading is an optional feature, so conforming C11 implementations are not required to support it. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"