edited by
1,141 views
0 votes
0 votes
What is the main reason for RACE condition while synchronzing the process?
A)The two processes trying to update the variable at same time.

B) More than one process entering into the critical section at same time.

C)Mutual Exclusion condition not satisfies.

D)All of the above
edited by

1 Answer

0 votes
0 votes
The race condition occurs when

1. The two processes share the same variable and try to manipulate at the same time.

2. At most only one process is allowed inside the critical section. Hence, a race condition may also occur when more than one processes enter the critical section.

3. Mutual exclusion says that no other process is allowed to execute in the critical section when one process is already executing.

Hence, option (D) is the correct answer.

Related questions

2 votes
2 votes
3 answers
1