My Report

Operating System Practice Test 2


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement
 5%

Question 1 of 20

1. What is the main disadvantage of spinlocks?

Question 1 of 20

Question 2 of 20

2. Under multiprogramming, turnaround time for short jobs is usually ________ and that for long jobs is slightly ___________

Question 2 of 20

Question 3 of 20

3. A binary semaphore is a semaphore with integer values ____________

Question 3 of 20

Question 4 of 20

4. Mutual exclusion implies that ____________

Question 4 of 20

Question 5 of 20

5. Which one of the following is the deadlock avoidance algorithm?

Question 5 of 20

Question 6 of 20

6. Bounded waiting implies that there exists a bound on the number of times a process is allowed to enter its critical section ____________

Question 6 of 20

Question 7 of 20

7. For non sharable resources like a printer, mutual exclusion ____________

Question 7 of 20

Question 8 of 20

8. A minimum of _____ variable(s) is/are required to be shared between processes to solve the critical section problem.

Question 8 of 20

Question 9 of 20

9. For sharable resources, mutual exclusion ____________

Question 9 of 20

Question 10 of 20

10. At a particular time of computation the value of a counting semaphore is 7.Then 20 P operations and 15 V operations were completed on this semaphore. The resulting value of the semaphore is? (GATE 1987)

Question 10 of 20

Question 11 of 20

11. Which is the most optimal scheduling algorithm?

Question 11 of 20

Question 12 of 20

12. The circular wait condition can be prevented by ____________

Question 12 of 20

Question 13 of 20

13. What are the operations that can be invoked on a condition variable?

Question 13 of 20

Question 14 of 20

14. Which of the following concurrency control protocols ensure both conflict serializability and freedom from deadlock?
I) 2-phase locking
II) Timestamp ordering

Question 14 of 20

Question 15 of 20

15. To avoid deadlock ____________

Question 15 of 20

Question 16 of 20

16. A procedure defined within a ________ can access only those variables declared locally within the _______ and its formal parameters.

Question 16 of 20

Question 17 of 20

17. What is Response time?

Question 17 of 20

Question 18 of 20

18. Scheduling is done so as to ____________

Question 18 of 20

Question 19 of 20

19. The system periodically performs checkpoints that consists of the following operation(s) ____________

Question 19 of 20

Question 20 of 20

20. What are Spinlocks?

Question 20 of 20


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.