+ 2
How to implement Multi Threading in C.
I am working on a project that requires two simultaneous processes to run and communicate with each other. I want them to be able to read each others outputs and work with the output.
4 Respuestas
+ 2
Agent_I you are deathly wrong. C added support for multithreading in C11. You can use it as well as you can in C++.
Look it up at cpprefrence.com. C's multithreading library is really cool.
+ 2
Trekker ah yes, you're right. I didn't know it cause I usually use the older C. Thanks for the correction
+ 1
You can use the pthreads header file. Check out tutorials of multithreading with pthreads online.
+ 1
I'm afraid that C doesn't have any standard library regarding multi-threading. C++, however, does have it. The implementation itself is almost the same as in Java