Write a program using semaphore to avoid the race condition.
Answers
Answered by
0
Explanation:
To avoid race condition we need Mutual Exclusion. Mutual Exclusion is someway of making sure that if one process is using a shared variable or file, the other processes will be excluded from doing the same things.
Similar questions
Math,
4 months ago
Math,
4 months ago
Science,
9 months ago
Accountancy,
11 months ago
Physics,
11 months ago