1,173 views
0 votes
0 votes
if s is a binary semaphore and the initial value of s is 1 then can 'signal' be performed on s ?  what will happen if signal(s) is performed?

3 Answers

1 votes
1 votes

Use of signal(s) releases the lock by increasing the value of semaphore by 1. It is performed by a process which is exiting from a critical section. Answer to your question is Yes, signal(s) can be performed. Since it is a binary semaphore, even performing signal(s), i.e., increasing s by 1, won't exceed the value of s from 1.

Visit this: https://en.wikibooks.org/wiki/Operating_System_Design/Processes/Semaphores

0 votes
0 votes
If value of binary semaphore is 1 then there is no process in the critical section then why will signal(s) be executed.
0 votes
0 votes

if s is a binary semaphore and the initial value of s is 1 then after performing 1 signal operation then it will remains same( one successful operation)

Related questions

1 votes
1 votes
0 answers
1
Mk Utkarsh asked Dec 30, 2017
330 views
(i) What is Load/Store?(ii) Explain fetch-and-set.is there any relation between these two or any basis of comparision?
0 votes
0 votes
0 answers
2
Arbaz__Malik asked Dec 25, 2021
607 views
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 ...