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
Computer Science,
5 months ago
Science,
5 months ago
Hindi,
5 months ago
Science,
9 months ago
Accountancy,
1 year ago
Physics,
1 year ago