Question from operating system

Show Important Question


1) A thread is a
A) Task
B) Program
C) Process
D) Light-weight process

2) A page fault occurs
A) when the page is not in the memory
B) when the page is in the memory
C) when the process enters the blocked state
D) when the process is in the ready state

3) What is a shell ?
A) It is a hardware component
B) It is a command interpreter
C) It is a part in compiler
D) It is a tool in CPU scheduling

4) Banker's algorithm for resource allocation deals with
A) Deadlock prevention
B) Deadlock avoidance
C) Deadlock recovery
D) Mutual exclusion

5) The time spent by a process in ready queue is called
A) waiting time
B) turnaround time
C) response time
D) none of these

6) Variable partition memory allocation can lead to
A) external fragmentation
B) internal fragmentation
C) both A) and B)
D) none of these

7) SPOOLING stands for
A) Spontaneous Peripheral Operation Online
B) Small Peripheral Operation Online
C) Simultaneous Peripheral Operation Online
D) None of these

8) Scheduling a process from Ready Queue to CPU is done by
A) Short Term Scheduler
B) Middle Term Scheduler
C) Long Term Scheduler
D) Dispatcher

9) The default remedy of starvation is
A) ageing
B) critical section
C) mutual exclusion
D) all of these

10) Which of the following algorithm generally suffers from Belady's anomaly
A) Optimal
B) FIFO
C) LRU
D) all of these

11) Page stealing is
A) a sign of efficient system
B) taking larger disk space's for pages paged out
C) taking page frames from other working sets
D) one of the tuning goals

12) IPC stands for
A) Internal Program Controller
B) Internal Process Control
C) Interprocess Communication
D) None of these

13) Suppose that a process is in BLOCKED state waiting from some I/O service. When the service is completed, it goes to the
A) RUNNING state
B) READY state
C) SUSPENDED state
D) TERMINATED state

14) The general structure of a process consists of
A) critical section
B) reminder section
C) race condition
D) both A) and B)

15) Which is the fastest of the following?
A) Cache memory
B) RAM
C) CD-ROM
D) Register

16) Round Robin, scheduling scheduling is essentially the preemptive version of
A) FIFO
B) Shortest Job First
C) Shortest Remaining Time First
D) Longest Time First.

17) The number of processes completed per unit time is known as
A) Output
B) Throughput
C) Efficiency
D) Capacity

18) The mechanism that brings a page into memory only when it is needed, is called
A) Segmentation
B) Fragmentation
C) Demand paging
D) Page and replacement

19) Which of the following resources can cause deadlocks?
A) Read only files
B) Shared programs
C) Printers
D) All of these

20) In order to allow only one process to enter its critical section, binary semaphores are initialized to
A) 0
B) 1
C) 2
D) 3