Hello,
I have a question about the NRF SDK fundamental lesson 8 exercise 1. In the code below get_access and release_access are executed in different threads. The semaphore is initialized with count of 10. Since the semaphore count is greater than zero, would it be possible that the thread executing get_access attempts to modify available_instance_count when release_access is modifying it too? I tried to run the code in this lesson multiple times but didn’t notice any corruption of available_instance_count. However, it’s not clear for me why it does not happen. I would appreciate any clarification.
Thanks,
Sam