Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged semaphore
26
26 votes
4
answers
4 answers
18.0k
18.0k views
GATE CSE 2022 | Question: 9
Consider the following threads, $\text{T}_{1}, \text{T}_{2},$ and $\text{T}_{3}$ executing on a single processor, synchronized using three binary semaphore variables, $\t...
Arjun
18.0k
views
asked
Feb 15, 2022
Operating System
gatecse-2022
operating-system
process-synchronization
semaphore
one-mark
+
–
0
0 votes
0
0 answers
1.1k
1.1k views
self-doubt operating-system semaphore
given solution is wait(P) , wait(Q), wait(p) , wait(Q) for s1,s2,s3,s4 respectivelyI know this implementation is deadlock free just want to ask if it will follow bounded ...
Arbaz__Malik
1.1k
views
asked
Dec 25, 2021
Operating System
self-doubt
operating-system
semaphore
+
–
1
1 vote
2
2 answers
1.6k
1.6k views
Operation system Applied test series 2022
If the P() and V() semaphore operations are not executed atomically, then which of the following are always correct?Mutual exclusion satisfied Progress is not satisfiedBo...
ramakrushna
1.6k
views
asked
Dec 18, 2021
Operating System
test-series
operating-system
semaphore
mutual-exclusion
+
–
0
0 votes
1
1 answer
918
918 views
NIELIT 2021 Dec Scientist B - Section B: 79
A protected variable which can be accessed and changed by particular set of operation is called $:$interrupt monitorsemaphore$\text{IPC}$
soujanyareddy13
918
views
asked
Dec 7, 2021
Operating System
nielit2021dec-scientistb
operating-system
process-synchronization
semaphore
+
–
2
2 votes
1
1 answer
1.0k
1.0k views
Applied Test Series
It is given that in a system, processes P and C communicate by means of 3 semaphores and one buffer. The buffer size is given as 10. A semaphore M is used to implement mu...
LRU
1.0k
views
asked
Oct 17, 2021
Operating System
test-series
operating-system
process-synchronization
semaphore
+
–
0
0 votes
2
2 answers
1.4k
1.4k views
UGC NET CSE | December 2019 | Part 2 | Question: 24
A counting semaphore is initialized to $8$. $3$ wait ( ) operations and $4$ signal ( ) operations are applied. Find the current value of semaphore variable.$9$$5$$1$$4$
soujanyareddy13
1.4k
views
asked
May 12, 2021
Operating System
ugcnetcse-dec2019-paper2
operating-system
semaphore
+
–
58
58 votes
7
answers
7 answers
29.1k
29.1k views
GATE CSE 2021 | Set 1 | Question: 46
Consider the following pseudocode, where $\textsf{S}$ is a semaphore initialized to $5$ in line $\#2$ and $\textsf{counter}$ is a shared variable initialized to $0$ in li...
Arjun
29.1k
views
asked
Feb 18, 2021
Operating System
gatecse-2021-set1
multiple-selects
operating-system
process-synchronization
semaphore
two-marks
+
–
0
0 votes
1
1 answer
774
774 views
UGC NET CSE | June 2006 | Part 2 | Question: 39
_______synchronize critical resources to prevent deadlock.$P$- operator$V$- operatorSemaphoresHard disk
go_editor
774
views
asked
Mar 27, 2020
Operating System
ugcnetcse-june2006-paper2
operating-system
semaphore
deadlock-prevention-avoidance-detection
+
–
0
0 votes
2
2 answers
1.6k
1.6k views
UGC NET CSE | December 2004 | Part 2 | Question: 36
Semaphores are used to :Synchronise critical resources to prevent deadlockSynchronise critical resources to prevent contentionDo I/oFacilitate memory management
go_editor
1.6k
views
asked
Mar 27, 2020
Operating System
ugcnetcse-dec2004-paper2
operating-system
semaphore
process-synchronization
+
–
0
0 votes
2
2 answers
3.6k
3.6k views
UGC NET CSE | December 2005 | Part 2 | Question: 36
Producer consumer problem can be solved using :semaphoresevent countersmonitorsall the above
go_editor
3.6k
views
asked
Mar 27, 2020
Operating System
ugcnetcse-dec2005-paper2
operating-system
process-synchronization
semaphore
+
–
2
2 votes
5
answers
5 answers
4.4k
4.4k views
UGC NET CSE | January 2017 | Part 2 | Question: 36
There are three processes $P_{1}, P_{2}$ and $P_{3}$ sharing a semaphore for synchronizing a variable. Initial value of semaphore is one. Assume that negative value of se...
go_editor
4.4k
views
asked
Mar 24, 2020
Operating System
ugcnetjan2017ii
operating-system
semaphore
+
–
41
41 votes
5
answers
5 answers
26.6k
26.6k views
GATE CSE 2020 | Question: 34
Each of a set of $n$ processes executes the following code using two semaphores $a$ and $b$ initialized to $1$ and $0$, respectively. Assume that $\text{count}$ is a shar...
Arjun
26.6k
views
asked
Feb 12, 2020
Operating System
gatecse-2020
operating-system
semaphore
two-marks
+
–
5
5 votes
4
4 answers
9.4k
9.4k views
ISRO CSE 2020 | Question: 57
The hardware implementation which provides mutual exclusion isSemaphoresTest and set instructionsBoth optionsNone of the options
Satbir
9.4k
views
asked
Jan 13, 2020
Operating System
isro-2020
operating-system
semaphore
mutual-exclusion
normal
+
–
0
0 votes
0
0 answers
936
936 views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 6 Question 39 (Page No. 469)
A student majoring in anthropology and minoring in computer science has embarked on a research project to see if African baboons can be taught about deadlocks. He locates...
admin
936
views
asked
Oct 30, 2019
Operating System
tanenbaum
operating-system
deadlock-prevention-avoidance-detection
semaphore
descriptive
+
–
1
1 vote
0
0 answers
563
563 views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 64 (Page No. 179 - 180)
The objective of this exercise is to implement a multithreaded solution to find if a given number is a perfect number. $N$ is a perfect number if the sum of all its facto...
admin
563
views
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
multithreaded
semaphore
descriptive
+
–
0
0 votes
0
0 answers
981
981 views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 62 (Page No. 179)
Write a producer-consumer problem that uses threads and shares a common buffer. However, do not use semaphores or any other synchronization primitives to guard the shared...
admin
981
views
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
semaphore
process-synchronization
descriptive
+
–
0
0 votes
0
0 answers
1.0k
1.0k views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 60 (Page No. 179)
Suppose that a university wants to show off how politically correct it is by applying the U.S. Supreme Court’s ‘‘Separate but equal is inherently unequal’’ doctrine to ge...
admin
1.0k
views
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
process-synchronization
semaphore
descriptive
+
–
0
0 votes
0
0 answers
685
685 views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 59 (Page No. 179)
Solve the dining philosophers problem using monitors instead of semaphores.
admin
685
views
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
semaphore
monitors
descriptive
+
–
0
0 votes
0
0 answers
550
550 views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 58 (Page No. 179)
Assume that you have an operating system that provides semaphores. Implement a message system. Write the procedures for sending and receiving messages.
admin
550
views
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
semaphore
descriptive
+
–
0
0 votes
1
1 answer
1.0k
1.0k views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 35 (Page No. 176)
Synchronization within monitors uses condition variables and two special operations, wait and signal. A more general form of synchronization would be to have a single pri...
admin
1.0k
views
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
process-synchronization
semaphore
descriptive
+
–
0
0 votes
0
0 answers
499
499 views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 34 (Page No. 176)
Can two threads in the same process synchronize using a kernel semaphore if the threads are implemented by the kernel? What if they are implemented in user space? Assume ...
admin
499
views
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
semaphore
descriptive
+
–
0
0 votes
1
1 answer
1.5k
1.5k views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 31 (Page No. 176)
How could an operating system that can disable interrupts implement semaphores?
admin
1.5k
views
asked
Oct 25, 2019
Operating System
tanenbaum
operating-system
process-and-threads
interrupts
semaphore
descriptive
+
–
1
1 vote
1
1 answer
1.4k
1.4k views
Why after improving implementation of semaphores we still have busy waiting time?
Bhaskar Singh
1.4k
views
asked
May 26, 2019
Operating System
operating-system
semaphore
+
–
1
1 vote
2
2 answers
2.0k
2.0k views
Doubt in Reader-Writer Problem's Solution
Why in reader section we are locking(I highlighted the locking) read_count and if section?If we don't use locking what problems might arise?I know that we should use loc...
Bhaskar Singh
2.0k
views
asked
May 26, 2019
Operating System
process-synchronization
semaphore
operating-system
+
–
0
0 votes
0
0 answers
1.8k
1.8k views
Operating System - Galvin - Chapter 3
Galvin, 9th edition on page 146 states that“Shared memory can be faster than message passing, since message-passing systems are typically implemented using system calls a...
vinay chauhan
1.8k
views
asked
May 5, 2019
Operating System
operating-system
process-synchronization
semaphore
shared-memory
+
–
1
1 vote
1
1 answer
1.9k
1.9k views
MADE EASY FREE TEST
a)Mutual exclusion, progress, bounded wait all are satisfiedb)Mutual exclusion, progress satisfied but bounded wait not satisfiedc)Mutual exclusion satisfied progress, bo...
Hirak
1.9k
views
asked
May 4, 2019
Operating System
semaphore
+
–
3
3 votes
4
4 answers
2.9k
2.9k views
Ace Test Series: Operating System - Reader Writer Problem
Na462
2.9k
views
asked
Jan 21, 2019
Operating System
operating-system
process-synchronization
semaphore
binary-semaphore
ace-test-series
+
–
Page:
« prev
1
2
3
4
5
6
7
next »