Multithreading in C pthreads - Where to learn
I looked at the book recommendations thread and couldn't find one - I'm looking for a book which thoroughly covers pthreads and multithreading/parallelism in C.
I can find about 100 tutorials using Google but it's almost a laughable joke because every single one is just like "This is how to create a thread" with some silly counting or hello world example.
I want to learn how to properly manage multiple threads, learn all of the primitives like semaphores, mutexes, critical sections, etc... Learn the common pitfalls, learn debugging techniques, and also some architectures on how to properly lay out a multithreaded application.. Not just spin up a few threads for demo purposes.
I find it very hard to believe that there isn't a good primer on this for the 40+ year old programming language C... Yet I have not been able to find one.
Any recommendations? It could be videos, it could be a lengthy blog, or a book... I just want to learn this complex topic thoroughly.