Easton Man's Channel
14 hours ago
Daniel Lemire's blog
A quick overview of atomics in C
Telegraph
|
source
Telegraph
A quick overview of atomics in C
If you write in C, by default, you use a single thread. Extra cores do not help until you create more threads. However, if you include the header <threads.h>, you can pass a function to thrd_create, and wait for it with thrd_join. #include <threads.h>#include…
Home
Powered by
BroadcastChannel
&
Sepia