Sujet : Re: best approach for multithreading (?)
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 02. Dec 2024, 20:34:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vil21t$3h4jm$1@raubtier-asyl.eternal-september.org>
References : 1
User-Agent : Mozilla Thunderbird
That's how thread-pools work. In C++ you'd simply feed a deque<> of
function<>-objects to a limited number of threads. In C that's possible
similar but with ten lines the code.