:: Re: [DNG] Why C/C++ ?
Pàgina inicial
Delete this message
Reply to this message
Autor: Didier Kryn
Data:  
A: dng
Assumpte: Re: [DNG] Why C/C++ ?
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.

--     Didier