Computer Science - Operating Systems Concepts - Discussion

Discussion Forum : Operating Systems Concepts - Section 5 (Q.No. 36)
36.
A critical region is
a program segment that has not been proved bug-free
a program segment that often causes unexpected system crashes
a program segment where shared resources are accessed
one which is enclosed by a pair of P and V operations on semaphores
none is the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
9 comments Page 1 of 1.

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.

Preet said:   8 years ago
The correct option is c.

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.

Tushar said:   9 years ago
Please Explain in laymon terms.

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.

Pikachu said:   1 decade ago
Please explain the concept of semaphore?

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?

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.

Post your comments here:

Your comments will be displayed after verification.