| Deutsch English Français Italiano |
|
<vii0ao$2jdsb$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lew Pitcher <lew.pitcher@digitalfreehold.ca> Newsgroups: comp.lang.c Subject: Re: best approach for multithreading (?) Date: Sun, 1 Dec 2024 15:45:28 -0000 (UTC) Organization: A noiseless patient Spider Lines: 39 Message-ID: <vii0ao$2jdsb$1@dont-email.me> References: <ddd3a0b59c95b5752b66f46348c96a6f8279d518@i2pn2.org> <slrnvkousf.2d4d7.candycanearter07@candydeb.host.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 01 Dec 2024 16:45:29 +0100 (CET) Injection-Info: dont-email.me; posting-host="0a94eb99f86d6a0087b60c8e3c23a8b2"; logging-data="2733963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ncrlWjJYj9pggyoeNbUHeO6VknBgSj54=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:AKbjxPRU1RQhasyL9dFbeBgpzJg= Bytes: 2409 On Sun, 01 Dec 2024 15:10:03 +0000, candycanearter07 wrote: > fir <profesor.fir@gmail.com> wrote at 22:04 this Saturday (GMT): >> [i wropte it soem days back then to eventually post in a place when >> people can answer this but i dont get idea of such place so i post it >> here for now] >> >> tell me if you know somethin better approach for multithreading >> than this >> >> i mean i got discovered soem approach for multithreadng >> (i mean scheme how it probably should be done) and i wonder >> if there is something better than this (in real world) >> >> the appriach is based on call queue and needs (at least >> as a base) two keywoards 'adq' (add queue) and 'runq' (run queue) >> ewentually 'runqs' (run queue sequantially) 'runqp' (run queue in >> parrallel) [snip] >> >> so is it he best approach or there is something better? >> >> /fir > > > There's a standard library for multithreading. > https://www.man7.org/linux/man-pages/man7/pthreads.7.html Since C11, the C standard library has provided it's own support for threading, which (I'm told) closely resembles the POSIX threading model implemented in the Linux pthreads library. Fir might check out the C standard first (as code written to that standard will be portable to any environment that supports C11). -- Lew Pitcher "In Skills We Trust"