Deutsch   English   Français   Italiano  
<vil21t$3h4jm$1@raubtier-asyl.eternal-september.org>

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!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: best approach for multithreading (?)
Date: Mon, 2 Dec 2024 20:34:22 +0100
Organization: A noiseless patient Spider
Lines: 4
Message-ID: <vil21t$3h4jm$1@raubtier-asyl.eternal-september.org>
References: <ddd3a0b59c95b5752b66f46348c96a6f8279d518@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 02 Dec 2024 20:33:17 +0100 (CET)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="a6faa58455f10f04370ab23d350cb3a1";
	logging-data="3707510"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18YRtCwHRbj4n56pIF4N1xbsgZk7Pu5L9U="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xT3FpyPOio7Q5/9sHp+j32ZCp3U=
In-Reply-To: <ddd3a0b59c95b5752b66f46348c96a6f8279d518@i2pn2.org>
Content-Language: de-DE
Bytes: 1350

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.