Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged critical-section
3
3 votes
1
1 answer
90
90 views
GO Classes DPP | GATE CS | Operating System | Critical Section Requirements
For a correct mechanism controlling entry into a critical section, consider the following requirements:Two processes must not execute simultaneously inside their critical...
GO Classes
90
views
asked
Aug 29
Operating System
goclasses
goclasses-cs-dpp
operating-system
goclasses-cs-dpp-day-359
goclasses-os-practice-questions
critical-section
+
–
0
0 votes
0
0 answers
282
282 views
Process Synchronisation
The enter_CS() and leave_CS() functions to implement critical section of a process are realized using test-and-set instruction as follows:void enter_CS(x) { while (test-a...
Vishnu__
282
views
asked
Feb 4
Operating System
operating-system
semaphore
critical-section
multiple-selects
+
–
0
0 votes
1
1 answer
350
350 views
UGC NET CSE | December 2023 | Part 2 | Question: 53
Which of the following statements are CORRECT ?A process always check state of currently executing process to enter critical schema.Spin locks uses busy waiting.Periodica...
Shubham Sharma 2
350
views
asked
Sep 9, 2025
Operating System
ugcnetcse-dec2023
operating-system
process-synchronization
critical-section
+
–
0
0 votes
1
1 answer
317
317 views
Self Doubt
I have a question.If there is a hypothetical cs solution.In it 3 processes are waiting .whoever will get cpu will enter into the cs.Can that be called starvation?
Mudit Jain
317
views
asked
Dec 16, 2024
Operating System
operating-system
process-scheduling
critical-section
+
–
0
0 votes
1
1 answer
569
569 views
Operating System: Process Synchronization
air1air2
569
views
asked
Nov 29, 2024
Operating System
operating-system
critical-section
process-synchronization
+
–
0
0 votes
1
1 answer
391
391 views
ISI2022 - MCS - PCB (CS) | Question: 7
Consider an operating system consisting of a pair of processes $P_{0}$ and $P_{1}$. The structure of each process $P_{\mathrm{i}}$ is shown below.while(TRUE){ j = 1-i; fl...
admin
391
views
asked
Oct 18, 2024
Operating System
isi2022-mcs-pcb-cs
operating-system
process-synchronization
critical-section
+
–
0
0 votes
1
1 answer
842
842 views
process synchronization
How to approach synchronization (specifically semaphore) question, there size are really intimidating and i’m unable to decode the code written? What to do??
N3314nch41
842
views
asked
Sep 10, 2023
Operating System
process-synchronization
operating-system
semaphore
critical-section
self-doubt
+
–
0
0 votes
2
2 answers
2.2k
2.2k views
What's the standard technique to test if the algorithm satisfies mutual exclusion, progress and bounded waiting or not?
Sorry if this is a stupid question. But it really intrigued me. Same resources at different algorithms are telling different ways to test these stuffs.Here's an algorith...
shivajikobardan
2.2k
views
asked
Jul 22, 2023
Operating System
operating-system
deadlock-prevention-avoidance-detection
process-synchronization
critical-section
mutual-exclusion
+
–
0
0 votes
1
1 answer
611
611 views
UGCNET CSE December 2022: 52
In design protocol of critical section problem, each process must ask permission to enter critical section in ________ code; it then executes in the critical section; onc...
admin
611
views
asked
May 20, 2023
Others
ugcnetcse-dec2022
process-synchronization
critical-section
+
–
1
1 vote
2
2 answers
1.2k
1.2k views
process synchronization
Which of the following statements is false?a) Disjoint processes need not use critical sectionb) Programs with critical sections can never be use simultaneously by more t...
practicalmetal
1.2k
views
asked
Apr 17, 2023
Operating System
process-synchronization
critical-section
+
–
1
1 vote
2
2 answers
1.2k
1.2k views
GO Classes 2024 | IIITH Mock Test 2 | Question: 75
Consider the following pseudo‐code for a process $\textsf{Pi},$ where $\textsf{“shared boolean flag ”}$ is a variable declared in shared memory, initialized as:flag[0] = ...
GO Classes
1.2k
views
asked
Apr 7, 2023
Operating System
goclasses2023-iiith-mock-11
goclasses
operating-system
process-synchronization
critical-section
multiple-selects
one-mark
+
–
4
4 votes
0
0 answers
1.7k
1.7k views
made east test series - synchronization - OS
Consider the following proposed solution to Dining Philosopher’s problem to avoid deadlock. The binary semaphore lock is initialized to 1.Which of the following is correc...
atulcse
1.7k
views
asked
Jan 19, 2022
Operating System
operating-system
process-synchronization
made-easy-test-series
concurrency
critical-section
+
–
0
0 votes
1
1 answer
606
606 views
UGC NET CSE | June 2007 | Part 2 | Question: 36
Part of a program where the shared memory is accessed and which should be executed indivisibly, is called:SemaphoresDirectoryCritical sectionMutual exclusion
go_editor
606
views
asked
Mar 28, 2020
Operating System
ugcnetcse-june2007-paper2
operating-system
process-synchronization
critical-section
+
–
0
0 votes
0
0 answers
1.1k
1.1k views
Ace test series: Operating System - Critical Data Minimum Value
Consider the following program segments for two different processes (P1, P2) executing concurrently and where a and b are not shared variables, but x starts at zero and i...
OneZero
1.1k
views
asked
Jan 15, 2019
Operating System
operating-system
ace-test-series
critical-section
+
–
0
0 votes
1
answers
1 answer
2.7k
2.7k views
UGC NET CSE | December 2018 | Part 2 | Question: 74
Suppose $P, Q$ and $R$ are co-operating processes satisfying Mutual Exclusion condition. Then, if the process $Q$ is executing in its critical section thenBoth $‘P...
Arjun
2.7k
views
asked
Jan 2, 2019
Operating System
ugcnetcse-dec2018-paper2
operating-system
process-synchronization
critical-section
+
–
0
0 votes
0
0 answers
2.9k
2.9k views
Relating process termination and deadlock with progress requirement of the solution to the critical section problem
Many problems on gateoverflow asks whether the given code satisfies progress requirement of the solution for the critical section problem. Most of these code contain mult...
Raj Singh 1
2.9k
views
asked
Jan 1, 2019
Operating System
operating-system
critical-section
deadlock-prevention-avoidance-detection
mutual-exclusion
busy-wait
+
–
1
1 vote
1
1 answer
3.4k
3.4k views
Deciding if mutual exclusion and progress is satisfied
Consider the followingProcess Piwhile(1){ while(turn != i); //critical section turn = j; //remainder section}Process Pjwhile(1){ while(turn != j); //critical ...
Raj Singh 1
3.4k
views
asked
Jan 1, 2019
Operating System
critical-section
mutual-exclusion
operating-system
+
–
0
0 votes
0
0 answers
1.1k
1.1k views
Process Synchronization
Does Progress implies freedom from Deadlock?
Nirmal Gaur
1.1k
views
asked
Dec 19, 2018
Operating System
process-synchronization
critical-section
operating-system
+
–
0
0 votes
1
1 answer
713
713 views
Deadlock condition in synchronization
Please describe the Deadlock Condition in synchronization and when will be synchronization possible and condition ..?
Rackson
713
views
asked
Dec 14, 2018
Operating System
process-synchronization
deadlock-prevention-avoidance-detection
critical-section
progress
operating-system
+
–
1
1 vote
2
2 answers
1.5k
1.5k views
synchronization
does it guarantee mutual exclusion and deadlock prevention?
Rahul_Rathod_
1.5k
views
asked
Dec 12, 2018
Operating System
process-synchronization
operating-system
critical-section
process
deadlock-prevention-avoidance-detection
+
–
0
0 votes
0
0 answers
555
555 views
previous
https://gateoverflow.in/1319/gate2009-33In this question progress is present or not?According to me making x=0 is exit part and not the reminder part. Hence I think progr...
Swapnil Naik
555
views
asked
Nov 14, 2018
Operating System
operating-system
critical-section
+
–
0
0 votes
1
1 answer
1.2k
1.2k views
Made Easy Test Series:OS
Consider the following solution for critical section problem with 'n' processes P0,P1,P2,......P(n-1).For all i,number[i] is an integer array initialized to zero, and for...
talha hashim
1.2k
views
asked
Oct 18, 2018
Operating System
critical-section
operating-system
+
–
4
4 votes
3
3 answers
7.1k
7.1k views
Critical Section
Consider the following code to solve the critical section problem for two processes P0 and P1. Initially flag [i] contain false for i = 0 and 1.Assume i refers to the cur...
Na462
7.1k
views
asked
Jul 18, 2018
Operating System
operating-system
critical-section
process-synchronization
deadlock-prevention-avoidance-detection
busy-wait
+
–
0
0 votes
0
0 answers
632
632 views
My doubt on critical section
Is context switch allowed when a process is in the cirtical section? (Not preemption)If yes then how it deals with data inconsistency?
Akash Kumar Roy
632
views
asked
Mar 31, 2018
Operating System
operating-system
critical-section
+
–
4
4 votes
1
1 answer
2.6k
2.6k views
My doubt
Can a process be preempted while it is in a critical section?If yes, then how does the critical section or synchronisation mechanism concept provide solution for 'Data in...
Akash Kumar Roy
2.6k
views
asked
Mar 30, 2018
Operating System
operating-system
process-synchronization
critical-section
mutex
+
–
1
1 vote
1
1 answer
2.9k
2.9k views
made easy tests
Q1. Consider the methods used by process P1 and P2 for accessing their critical sections whenever needed, as given below. The initial values of shared Boolean variables, ...
mahakp
2.9k
views
asked
Jan 5, 2018
Operating System
critical-section
+
–
3
3 votes
0
0 answers
990
990 views
OS critical section
Let 'n' processes competing to enter their critical sections and mutex be a global binary semaphore initialized to 1. The process is coded as follows:Signal(mutex); C...
junk_mayavi
990
views
asked
Jan 2, 2018
Operating System
process-synchronization
operating-system
critical-section
+
–
Page:
1
2
next »