Deepika Bhavnani
/
mbed-os-example-criticalsection
Example to demonstrate race condition and how CriticalSectionLock API helps in resolving that.
README.md
- Committer:
- deepikabhavnani
- Date:
- 2017-10-23
- Revision:
- 1:bc165c6d4ed4
- Parent:
- 0:36e8acd8e607
File content as of revision 1:bc165c6d4ed4:
### Getting started with the CriticalSectionLock API ### CriticalSectionLock Example This application demonstrated race condition when multiple threads update global shared resource.CriticalSectionLock is used to avoid this race condition and protect the shared counter. ### Usage ### Set USE_CRITICAL_SECTION_LOCK define as 0 to see the race condition.