Here I am using binary a semaphore to protect(lock) a shared resource. Only one of Task 1 and Task 2 can only get the lock
Sharing random stuff
Here I am using binary a semaphore to protect(lock) a shared resource. Only one of Task 1 and Task 2 can only get the lock