I made a quick summary of a project i have, in which I have two threads that should be able to read and write on a common variable (protected by a mutex in the real project.