Computer Science - Operating Systems Concepts - Discussion
Discussion Forum : Operating Systems Concepts - Section 5 (Q.No. 36)
36.
A critical region is
Discussion:
9 comments Page 1 of 1.
Chandan jena said:
1 decade ago
It is a main section of a program where main task is going on.
For example in a factorial program the critical region is that where the factorial algorithm implements.
Like|:
1: for(int i=1;i<=num;i++)
2: fact=fact*i;
So both of the line are worked as a critical region.
For example in a factorial program the critical region is that where the factorial algorithm implements.
Like|:
1: for(int i=1;i<=num;i++)
2: fact=fact*i;
So both of the line are worked as a critical region.
Shewangizaw Bogale said:
9 years ago
Critical section is a part of a multi-process program that may not be concurrently executed by more than one processes at a time.
In other words, it is a piece of a program that requires mutual exclusion of access.
So based on this clear definition : C should be the answer.
In other words, it is a piece of a program that requires mutual exclusion of access.
So based on this clear definition : C should be the answer.
Aishu said:
8 years ago
C should be the Answer. Critical section is nothing but a "region" where there is data which is shared by many process. To deal with this and achieve synchronization and mutual exclusion semaphoroes are used.
Suman said:
1 decade ago
I think option c should also be correct as a critical section is a section which is mutually sharable as well as modifiable.
Sanjay kumar meena said:
1 decade ago
But we can do the same work of P(wait) and V(signal) operation from other techniques also like some TSL and many other.
Praveen said:
1 decade ago
In the above answer, P and V operations means? Can anyone explain this?
Pikachu said:
1 decade ago
Please explain the concept of semaphore?
Tushar said:
9 years ago
Please Explain in laymon terms.
Preet said:
8 years ago
The correct option is c.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers