| Deutsch English Français Italiano |
|
<20241205191339.256@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 03:14:13 -0000 (UTC) Organization: A noiseless patient Spider Lines: 19 Message-ID: <20241205191339.256@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> Injection-Date: Fri, 06 Dec 2024 04:14:14 +0100 (CET) Injection-Info: dont-email.me; posting-host="a21ec8f7547b789a05d7525c89c98db7"; logging-data="2217723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RFmCIce+fcbjpJYBxSL+lNz1ovWZmhJw=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:e3iKydgJlkhI7UlsJ3ziGKe+2Cw= Bytes: 1963 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>. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca