:: Re: [DNG] Why C/C++ ?
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Didier Kryn
日付:  
To: dng
題目: 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