Pthreads – a few random tips and FAQs

To conclude this chapter, we provide answers to FAQs on multithreading as well as a brief note on how to debug a MT application using GDB. Do read on.

Every function in your MT application that can be run in parallel by threads must be written, verified, and documented to be thread-safe. This includes your MT app code, your project libraries, as well as any third-party libraries you link into.

Get Hands-On System Programming with Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.