re: Basics of multithreading in C VIEW POST

FULL DISCUSSION
 

Thanks Nathanael! Nice starter article on pthreads :)

For the curious, Lawrence Livermore National Laboratory have this article with more background and examples of why you might use the various features available in pthreads: computing.llnl.gov/tutorials/pthre...

It's also a good idea to make sure you are using thread-safe library functions, here's a nice SO question and answer: stackoverflow.com/questions/125957...

Enjoy your full control of the CPU!

 

Glab that you enjoyed it!

I'm starting to understand a lot about pure Computer Science since I got some courses about the theory of operating systems. It's so fascinating to learn how things really works beyond the compilers and why things are like that in programming languages!

code of conduct - report abuse