| Deutsch English Français Italiano |
|
<20241206101915.587@kylheku.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.lang.c Subject: Re: best approach for multithreading (?) Date: Fri, 6 Dec 2024 18:20:54 -0000 (UTC) Organization: A noiseless patient Spider Lines: 30 Message-ID: <20241206101915.587@kylheku.com> References: <ddd3a0b59c95b5752b66f46348c96a6f8279d518@i2pn2.org> <slrnvkousf.2d4d7.candycanearter07@candydeb.host.invalid> <vii0ao$2jdsb$1@dont-email.me> <20241201074928.161@kylheku.com> <viipr8$2qq41$4@dont-email.me> <20241203094647.518@kylheku.com> <vitfc3$1so4u$1@dont-email.me> <20241205191339.256@kylheku.com> <3mF4P.64$pAh5.41@fx06.iad> Injection-Date: Fri, 06 Dec 2024 19:20:55 +0100 (CET) Injection-Info: dont-email.me; posting-host="a21ec8f7547b789a05d7525c89c98db7"; logging-data="2630421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lyLDko2s/taF4Y1dnxhJKHo6UpoQk6ZE=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:PL2NE4Pju4g51UklD3BXSE7wZ1s= Bytes: 2605 On 2024-12-06, Scott Lurndal <scott@slp53.sl.home> wrote: > Kaz Kylheku <643-408-1753@kylheku.com> writes: >>On 2024-12-06, James Kuyper <jameskuyper@alumni.caltech.edu> wrote: >>> On 12/3/24 12:48, Kaz Kylheku wrote: >>> ... >>>> Think about it. The POSIX standard includes ISO C by reference. >>>> So that means POSIX has to have two thread libraries. >>>> It's a waste of flash in embedded systems. >>> >>> C <threads.h> can be implemented as a thin wrapper over POSIX threads. >>> The waste is relatively negligible. The differences, were intended to >>> allow <threads.h> to also be implemented on non-POSIX systems as >>> wrappers for whatever the native threading system was. >> >>Generally speaking, you can have a function called pthread_create on >>non-POSIX systems, and a header <pthread.h>. > > There are certain requirements of a posix threads implementation that > might be impossible for a non-POSIX system to implement efficiently; > windows, for example, doesn't support signals. It's better to remove requirements from the POSIX standard to implement a useful subset of POSIX threads, than to remove requirements from POSIX threads and then change all the names to ISO C threads, to create a redundant specification. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca