Synchronization of threads in bank accounts accesses
Budget: $10 – $30 USD
Write multi-threaded C++ programs for Linux
Create two programs in one VSCode project
p0 program without synchronization ('make p0' to compile p0)
p1 program with proper synchronization using mutex and/or semaphore ('make p1' to compile p1)
To run:
p0 loop_count => loop_count is the number of iteration each thread should run
p1 loop_count
Note: As shown in Lecture 11, create p0 first. Then, add synchronization tools to make p1
Create two programs in one VSCode project
p0 program without synchronization ('make p0' to compile p0)
p1 program with proper synchronization using mutex and/or semaphore ('make p1' to compile p1)
To run:
p0 loop_count => loop_count is the number of iteration each thread should run
p1 loop_count
Note: As shown in Lecture 11, create p0 first. Then, add synchronization tools to make p1