Question
What is a 'semaphore' in Operating
Systems?Solution
A semaphore is an integer variable accessed only through two atomic operations i.e. wait (P/down: decrement, block if 0) and signal (V/up: increment, wake blocked process). Binary semaphore (0 or 1) is a mutex lock. Counting semaphore allows N concurrent accesses. It is used to solve classic problems such as Producer-Consumer, Readers-Writers and Dining Philosophers. A race condition occurs when two threads simultaneously access shared data. Semaphores prevent this in multi-threaded banking transaction processing.
Fill in the third blank with the cut-off land holding to be eligible for the Scheme.
Which of the following correctly describes demat account?
What is the new corporate identity of the National Highways Infra Trust (NHIT) launched by NHAI intended to depict?
Which of the following is NOT a traditional craft covered under PMVS?
Which of the following statements correctly describes the role of the National Skill Development Corporation (NSDC) in the Skill India Mission?
In RBI MPC August 2024, which rate was unchanged at 6.75%?
Which of the following components is not included under the PMKSY scheme?
Jal Jeevan Mission ensures functionality of existing water supply systems and water connections, water quality monitoring and testing as well as sustain...
Which of the following are central sector sub-schemes of umbrella scheme - Scholarships for Higher Education for Young Achievers Scheme (SHREYAS) implem...
Which of the following is one of the major differences between an NBFC & a Bank?