Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 323 Bytes

exercise.md

File metadata and controls

12 lines (10 loc) · 323 Bytes
layout title parent
post
10.4 Exercise
10. Mutexes

2 preemptive threads

1 integer value, we want to in one thread add 1 and in the other subtract one. If we don't use mutex then unpredictable results If we do it should stay at same value even though 2 different priorities threads (and they are preemptive)