Company: Razorpay mcq
Difficulty: medium
Consider the following statements regarding semaphore techniques: 1. The semaphore value in this binary semaphore technique has changed to 0 because P1 has entered the Entry section with an initialized semaphore value 1. 2. The semaphore value in this counting semaphore technique has changed to 0 because P1 has entered the Entry section with an initialized semaphore value 1. 3. If the semaphore value is 0, then the queued processes will be blocked by using the sleep() operation. 4. P2 can enter the Entry section only if P1 is in the Critical section to maintain the mutual exclusion condition. Which of the statements are correct? 1 and 3 2 and 3 3 and 4 All of these Which of the following does a thread NOT share with the other threads of the same process? Code section Data section Open files and signals Program counter In Networking, what is the maximum number of valid subnets and usable hosts per subnet that you can get from a network using the subnet mask 255.255.255.224 (assuming a C