:: Re: [DNG] Why C/C++ ?
Kezdőlap
Delete this message
Reply to this message
Szerző: Olaf Meeuwissen
Dátum:  
Címzett: Didier Kryn
CC: dng
Tárgy: Re: [DNG] Why C/C++ ?

Didier Kryn <kryn@???> writes:

> Le 18/08/2024 à 11:02, Olaf Meeuwissen via Dng a écrit :
>
> I'd use pthreads for pure C, std::threads in C++.
>
> Disclaimer, reading "C++ Concurrency in Action"[1] made my head hurt :-/
>
>     My colleagues and me used tasks in Ada with no headache. Never
> used typically task-related primitives for synchronization though: we
> used pipes instead.  A task may be declared as automatic, or created
> with the "new" instruction, like in C++. When automatic, it is created
> when the function is called and the function waits for its termination
> before returning.


The pain was mostly caused by the lowest level access synchronization
bits to squeeze out the last little bit of concurrency gains.

Not that I ever had a need for that but the read was interesting, even
if headache inducing :-/
--
Olaf Meeuwissen