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
Discussion:
22 comments Page 1 of 3.
Owendrila Saha said:
2 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.
Owendrila Saha said:
2 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.
Joyi said:
4 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.
So, a better way to avoid is, do execution one after one.
Nidhi said:
5 years ago
In a critical condition more than one threads can be simultaneously running in order to produce a result. Now the sequence of these threads may lead to different answer at the end of process (as the threads must have read and done the processing of your instruction). So, only one thread shall be processed in order to avoid various result out of the critical condition.
Jahangeer said:
5 years ago
Well defined by @Ashok.
Jeevan said:
6 years ago
The critical section allows only one process and executes wait() until the process is completed hence there can be one process.
Mahendra said:
7 years ago
Final output of any variable depends on the execution sequence of the process. This condition is called as Race Condition.
Pooja said:
8 years ago
Entering more than one process in their critical section may cause race condition. So only one process entering at a time.
Vaishnavi said:
8 years ago
No two process can be in their critical section at the same time. If not race condition may occur.
Mutex (mutual exclusion) helps to avoid 2 processes being in their critical section at the same time.
If the number of processes to be handled is more than 2, then semaphores can be used to avoid race condition.
Mutex (mutual exclusion) helps to avoid 2 processes being in their critical section at the same time.
If the number of processes to be handled is more than 2, then semaphores can be used to avoid race condition.
Shashak goyal said:
10 years 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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers