Computer Science - Operating Systems Concepts - Discussion

Discussion Forum : Operating Systems Concepts - Section 1 (Q.No. 3)
3.
To avoid the race condition, the number of processes that may be simultaneously inside their critical section is
8
1
16
0
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
22 comments Page 2 of 3.

Owendrila Saha said:   4 years ago
In the case of process synchronisation, if we avoid race conditions then no two processes can enter in the critical section. If more than one process can enter the critical section then inconsistent results may come which cause race conditions.

Anupama said:   1 decade ago
Critical section is the part of program code where the program changes global variables, writing files etc. So entering more than one process in their critical section may cause race condition.

Joyi said:   7 years ago
If the order of execution of process determines the final state of a shared resource it's called race condition.

So, a better way to avoid is, do execution one after one.
(2)

Vijay chilkoti said:   1 decade ago
Race condition is that condition when two or more process are using the same data or shared resource and they all try to make change in that at the same time.

Shashak goyal said:   1 decade ago
Race condition brings in the idea of critical section. Race condition occurs when two threads try to access the shared data and change it at the same time.

Rajesh said:   1 decade ago
A situation in which multiple processes read and write a shared data item and the final result depends on the relative timing of their execution.

Jeevan said:   9 years ago
The critical section allows only one process and executes wait() until the process is completed hence there can be one process.
(1)

Pooja said:   1 decade ago
Entering more than one process in their critical section may cause race condition. So only one process entering at a time.
(1)

Mahendra said:   10 years ago
Final output of any variable depends on the execution sequence of the process. This condition is called as Race Condition.
(1)

Jag said:   1 decade ago
Race condition also known like a deadlock problem by the form threads.


Post your comments here:

Your comments will be displayed after verification.