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 10
Performance Analysis and Optimization
1
Profiling Multithreaded Applications with `perf`
Profile a multithreaded application using tools like `perf` to identify performance hotspots.
2
Measuring Lock Contention
Measure lock contention to identify synchronization bottlenecks.
3
Reducing Lock Hold Time
Optimize a critical section by reducing lock hold time (moving work outside the lock).
4
Mutex vs. Spinlock: Performance for Highly Contended Critical Sections
Compare the performance of a mutex versus a spinlock for a highly contended, short critical section.
5
Mutex vs. R/W Lock Performance for Read-Heavy Workloads
Compare the performance of a mutex versus a read-write lock for a workload with a high read-to-write ratio.
6
Lock-Based vs. Lock-Free Counters
Compare the performance of a lock-based versus a lock-free implementation of a shared counter.
Previous module
Debugging Multithreaded Programs
Next module
Advanced Threading Concepts and Patterns