Operating System
This test is based on Operating system concepts
Questions
Which of the following controls degree of multiprogramming?
- Short term scheduler
- Long term scheduler
- Medium term scheduler
- All of the above
- Both long and medium term scheduler
In a real time operating system which of the following is the most suitable scheduling scheme?
- Round robin
- FIFO
- Random scheduling
- Preemptive
- All of the above
Consider following code
wait (s) : while not (s > 0) do keep testing s : s - 1 Signal(s) : s = s + 1 if value of s is - 2. And a process P executes first instruction, then which of the following is true?
- P will be granted to enter critical state
- P will not be able to enter critical state and terminate
- P will execute first instruction and terminate
- P will keep testing until variable s becomes greater than zero
- None of the above
Which of the following algorithm is best suited for dealing with live lock?
- FIFO
- Priority Based pre-emption scheduling algorithm
- Shortest Job first
- Both Shortest job and priority algorithm
- None of the above
Which of the following is based on pessimistic concurrency control?
- Disable/Enable
- Compare and Swap Instruction
- Test and Set Instruction
- Both Disable/Enable and Compare and Swap instruction
- None of the above
How many child processes are created if two fork () system calls are called?
- 4
- 3
- 5
- 2
- 1
In a multilevel queue scheduling round robin is used with _______?
- high priority queue
- medium priority queue
- low priority queue
- none of the above
- high as well as low priority queue
Which of the following causes internal fragmentation?
- Static allocation of memory
- Dynamic allocation of memory
- Both static and dynamic allocation of memory
- None of the above
- Sometimes static and some times dyanimic memory
Minimum number of processes required for dead lock?
- 1
- 0
- 3
- 2
- 5
Which of the following is best suited for mutual exclusion?
- Algorithm 1
- Algorithm 2
- Semaphores
- Algorithm 3
- None of the above
When a process is removed from processor by medium term scheduler, then it is put back into _______, after it gets required resources?
- ready queue
- wait queue
- suspension
- none of the above
- non removable processes
Interprocess synchronization and communication is used because of which of the following?
- To prevent system Integrity
- To make efficient multiprocessing
- To prevent system integrity and efficient multiprocessing
- None of the above
- Interprocess synchronization and communication is not used in operating system
Three jobs are executed on a single processor system, it arrives at 0 time in order of p, q, r. Their CPU burst time required is 4, 1, 3 times. What is the completion time of jobs under round robin scheduling with time slice of 1 unit?
- 8
- 7
- 4
- 3
- 5
Which of the following is suitable for inter process synchronization and abstraction?
- Semaphores
- Monitors
- Both semaphores and monitors
- None of the above
- Sometimes semaphores and sometimes monitors
The main problem with Busy - Wait semaphore definition is?
- Indefinite postponement
- Live Lock
- Both Live Lock and Indefinite postponement
- Not any problem
- None of the above