Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
C programming with threads
·
Module 11
Advanced Threading Concepts and Patterns
1
Managing Per-Thread Data with `pthread_key_create`
Use thread-local storage (TLS) via `pthread_key_create` to manage per-thread data.
2
Making Non-Thread-Safe Functions Thread-Safe with TLS
Make a non-thread-safe function safe to use in a multithreaded context by leveraging TLS.
3
Writer-Preferring Reader-Writer Lock with Mutexes and Condition Variables
Implement a custom reader-writer lock with writer preference using only mutexes and condition variables.
4
Priority Inversion and Inheritance
Explain the concept of priority inversion and how priority inheritance can solve it.
Previous module
Performance Analysis and Optimization
Next module
Capstone: Concurrent Design Applications