Sujet : Re: Threads across programming languages
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.lang.c++ comp.lang.cDate : 03. May 2024, 01:22:15
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v11ann$52ol$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Mozilla Thunderbird
On 5/2/2024 5:15 PM, Kaz Kylheku wrote:
On 2024-05-02, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
The CPU can become a bottleneck.
Unfortunately, not in a way that you could use for playing slide
guitar, let alone actually drinking beer through it.
:^D The problem is that I have had to debug server code that actually locked a global mutex ala:
for (;;)
{
io_complete& io = wait_for_io(INFINITE);
lock();
io.foobar();
unlock();
}
Oh shit.