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 5
Implementing Thread-Safe Data Structures: Part 1
1
Mutex-Protected Stack Implementation
Design and implement a thread-safe stack using a mutex.
2
Thread-Safe Queue with Mutex and Condition Variables
Design and implement a thread-safe queue using a mutex and condition variables.
3
Single Lock Performance Issues in Linked Lists
Analyze the performance limitations of using a single, coarse-grained lock for a linked list.
4
Fine-Grained Locking for Linked Lists
Design a fine-grained locking strategy for a linked list using 'hand-over-hand' (lock coupling).
5
Fine-Grained Locking for Linked List Insertion
Implement the insertion operation for a linked list using fine-grained locking.
6
Fine-Grained Locking for Linked List Search
Implement the search operation for a linked list using fine-grained locking.
Previous module
Deadlock: Analysis and Prevention
Next module
Implementing Thread-Safe Data Structures: Part 2