OS Rev
OS Rev
OS Rev
To access the services of operating system, the interface is provided by the ___________
a) System calls
b) API
c) Library
d) Assembly instructions
Which one of the following error will be handle by the operating system?
a) power failure
b) lack of paper in printer
c) connection failure in the network
d) all of the mentioned
If a process fails, most operating system write the error information to a ______
a) log file
b) another running process
c) new file
d) none of the mentioned
Which facility dynamically adds probes to a running system, both in user processes and in the kernel?
a) DTrace
b) DLocate
c) DMap
d) DAdd
The systems which allow only one process execution at a time, are called __________
a) uniprogramming systems
b) uniprocessing systems
c) unitasking systems
d) none of the mentioned
The address of the next instruction to be executed by the current process is provided by the __________
a) CPU registers
b) Program counter
c) Process stack
d) Pipe
The primary distinction between the short term scheduler and the long term scheduler is __________
a) The length of their queues
b) The type of processes they schedule
c) The frequency of their execution
d) None of the mentioned
The only state transition that is initiated by the user process itself is __________
a) block
b) wakeup
c) dispatch
d) none of the mentioned
In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the
running state to the __________
a) Blocked state
b) Ready state
c) Suspended state
d) Terminated state
Suppose that a process is in "Blocked" state waiting for 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
The context of a process in the PCB of a process does not contain __________
a) the value of the CPU registers
b) the process state
c) memory-management information
d) context switch time
Which of the following need not necessarily be saved on a context switch between processes?
a) General purpose registers
b) Translation lookaside buffer
c) Program counter
d) All of the mentioned
When several processes access the same data concurrently and the outcome of the execution depends on the
particular order in which the access takes place, is called?
a) dynamic condition
b) race condition
c) essential condition
d) critical condition
If a process is executing in its critical section, then no other processes can be executing in their critical section. This
condition is called?
a) mutual exclusion
b) critical exclusion
c) synchronous exclusion
d) asynchronous exclusion
Restricting the child process to a subset of the parent's resources prevents any process from __________
a) overloading the system by using a lot of secondary storage
b) under-loading the system by very less CPU utilization
c) overloading the system by creating a lot of sub-processes
d) crashing the system by utilizing multiple resources
A parent process calling _____ system call will be suspended until children processes terminate.
a) wait
b) fork
c) exit
d) exec
Cascading termination refers to termination of all child processes before the parent terminates ______
a) Normally
b) Abnormally
c) Normally or abnormally
d) None of the mentioned
With _____________ only one process can execute at a time; meanwhile all other process are waiting for the
processor. With ______________ more than one process can be running simultaneously each on a different
processor.
a) Multiprocessing, Multiprogramming
b) Multiprogramming, Uniprocessing
c) Multiprogramming, Multiprocessing
d) Uniprogramming, Multiprocessing
In UNIX, the return value for the fork system call is _____ for the child process and _____ for the parent process.
a) A Negative integer, Zero
b) Zero, A Negative integer
c) Zero, A nonzero integer
d) A nonzero integer, Zero
Which of the following two operations are provided by the IPC facility?
a) write & delete message
b) delete & receive message
c) send & delete message
d) receive & send message
The link between two processes P and Q to send and receive messages is called __________
a) communication link
b) message-passing link
c) synchronization link
d) all of the mentioned
5. In multiprogramming environment, the OS decides which process gets the processor when and for how much
time. This function is called _____________.
A. process scheduling
B. process rescheduling
C. traffic controller
D. Processor Management
6. Keeps tracks of processor and status of process. The program responsible for this task is known as?
A. track manager
B. processor controller
C. traffic manager
D. traffic controller
1. What are the services operating System provides to both the users and to the programs?
9. The OS ensures that all access to system resources is controlled.The major activities of an operating system with
respect to?
A. Error handling
B. Resource Management
C. Protection
D. Communication
10. Two processes often require data to be transferred between them. The major activities of an operating system
with respect to?
A. Error handling
B. Resource Management
C. Protection
D. Communication
1. ______________ is a technique in which an Operating System collects the programs and data together in a batch
before processing starts.
A. Batch processing
B. Interactivity processing
C. Real Time processing
D. Distributed processing
4. ________ is when multiple jobs are executed by the CPU simultaneously by switching between them.
A. Multiprogramming
B. Multitasking
C. Distributed Environment
D. Spooling
6. Multiprogramming generally?
A. decreases CPU utilization
B. Share the processor
C. Both A and B
D. None of the above
7. A collection of computer programs, libraries and related data are referred to as?
A. algorithm
B. software
C. PCB
D. Process
10. In PCB, This includes the amount of CPU used for process execution, time limits, execution ID etc.
A. IO status information
B. CPU Scheduling Information
C. CPU registers
D. Accounting information
2. The processes which are blocked due to unavailability of an I/O device constitute this queue.
A. Process Scheduling Queues
B. Job queue
C. Ready queue
D. Device queues
6. When the suspended process is moved to the secondary storage. This process is called?
A. process mix.
B. swapping
C. Swap-In
D. Swap-Out
A. PCB
B. Program Counter
C. Scheduling information
D. context switch
10. Which of the following information is stored when the process is switched?
A. I/O State information
B. Accounting information
C. Base and limit register value
D. All of the above
Explanation: Threads are implemented in following two ways : User Level Threads and Kernel Level Threads.
4. Which of the following is not an advantage about thread?
A. Threads minimize the context switching time.
B. Use of threads provides concurrency within a process.
C. kernel is single threaded
D. All of the above
2. To access the services of operating system, the interface is provided by the ___________
a) System calls
b) API
c) Library
d) Assembly instructions
4. Which one of the following error will be handle by the operating system?
a) power failure
b) lack of paper in printer
c) connection failure in the network
d) all of the mentioned
7. If a process fails, most operating system write the error information to a ______
a) log file
b) another running process
c) new file
d) none of the mentioned
8. Which facility dynamically adds probes to a running system, both in user processes and in the kernel?
a) DTrace
b) DLocate
c) DMap
d) DAdd
1. The model in which one kernel thread is mapped to many user-level threads is called ___________
a) Many to One model
b) One to Many model
c) Many to Many model
d) One to One model
2. The model in which one user-level thread is mapped to many kernel level threads is called ___________
a) Many to One model
b) One to Many model
c) Many to Many model
d) One to One model
3. In the Many to One model, if a thread makes a blocking system call ___________
a) the entire process will be blocked
b) a part of the process will stay blocked, with the rest running
c) the entire process will run
d) none of the mentioned
4. In the Many to One model, multiple threads are unable to run in parallel on multiprocessors because of
___________
a) only one thread can access the kernel at a time
b) many user threads have access to just one kernel thread
c) there is only one kernel thread
d) none of the mentioned
6. In the One to One model when a thread makes a blocking system call ___________
a) other threads are strictly prohibited from running
b) other threads are allowed to run
c) other threads only from other processes are allowed to run
d) none of the mentioned
9. In the Many to Many model true concurrency cannot be gained because ___________
a) the kernel can schedule only one thread at a time
b) there are too many threads to handle
c) it is hard to map threads with each other
d) none of the mentioned
10. In the Many to Many models when a thread performs a blocking system call ___________
a) other threads are strictly prohibited from running
b) other threads are allowed to run
c) other threads only from other processes are allowed to run
d) none of the mentioned