answersLogoWhite

0

in an operating system, there may be a segment of code, which will be shared by many processes.but when two processes shares the code and if one updates the code while other reading it,there occurs a conflict.this is called critical section problem

To avoid this problem a lock is created on that block of code which establishes that no new process can access that block until the first process release it after it's usage.

Thus there would be no chance conflict b/w processes while reading that block simultaneously

User Avatar

Loyal Mayert

Lvl 10
4y ago

What else can I help you with?

Related Questions

If the neutral axis of a reinforced section is above the critical section what is the section called?

Under Reinforced Section


Which section is critical in rear axle?

The wheels and axle


What is the word that characterizes a critical section of code?

lock


What is the role of semaphore in critical section problem?

janina


Which is the world's 1st critical surgery?

Ceserean Section


Peterson algorigthm with n process?

while(1) { // thread i (0 <= i < n) for (j=1 ; j<n ; j++) { flag[i]=j; last[j]=i; for (k=0 ; k<n ; k++) { if (k==i) continue; while (flag[k]>=flag[i] && last[j]==i) { sleep(random()); } } } // critical section ... // end of critical section flag[i]=0; // not critical section ... // end of not critical section }


What is A section of code that modifies data structures used by several threads is called?

Critical Section.


Dekker algorithm version5 for n-process?

while(1) { // thread i (0 <= i < n) for (j=1 ; j<n ; j++) { flag[i]=j; last[j]=i; for (k=0 ; k<n ; k++) { if (k==i) continue; while (flag[k]>=flag[i] && last[j]==i) { sleep(random()); } } } // critical section ... // end of critical section flag[i]=0; // not critical section ... // end of not critical section }


What are Bryant University's 25th-75th percentile SAT scores?

Babson's 2014 25th-75th percentile SAT scores are 550-640 on the Critical Reading section, 610-710 on the Math section, and 580-663 on the Writing section.


What is mutually exclusive?

It is one of thecharacteristics of deadlock. When semaphores are used or mutual exclusion, the semaphore has an initial value of 1, and P() is called before the critical section, and V() is called after the critical section as shown below : semaphore-> P(); critical section semaphore-> V(); remainder section let us suppose that one process A is already executing its critical section then it implies that semaphore value at that time is zero. If process B now tries to enter this critical section , it cannot enter the critical section because it will have to wait before semaphore becomes greater than zero. This is possible only when process A executes its signal operation; after executing its critical section.


What are Centre College's 25th-75th percentile SAT scores?

Centre College's 2014 25th-75th percentile SAT scores are 560-690 on the Critical Reading section, 580-700 on the Math section, and 560-670 on the Writing section.


What are Occidental's 25th-75th percentile SAT scores?

Occidental's 2014 25th-75th percentile SAT scores are 600-700 on the Critical Reading section, 600-700 on the Math section, and 610-700 on the Writing section.