qwertyuiop

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Process synchronization can be done on a) hardware level b) software level c) both hardware and software level d) none of the mentioned

c) both hardware and software level

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

a) DTrace

When the process issues an I/O request: a) It is placed in an I/O queue b) It is placed in a waiting queue c) It is placed in the ready queue d) It is placed in the job queue

a) It is placed in an I/O queue

When a process terminates: a) it is removed from all queues b) It is removed from all, but the job queue c) Its process control block is de-allocated d) Its process control block is never de-allocated

a) It is removed from all queues

What is a long-term scheduler? a) It selects which process has to be brought into the ready queue b) It selected which process has to be executed next and allocates CPU c) It selects which process to remove from memory by swapping d) None of the mentioned

a) It selected which process has to be brought into the ready queue

To enable a process to wait within the monitor, a) a condition variable must be declared as condition b) condition variables must be used as boolean objects c) semaphore must be used d) all of the mentiioned

a) a condition variable must be declared as condition

The child process can: a) be a duplicate of the parent process b) never be a duplicate of the parent process c) cannot have another program loaded into it d) never have another program loaded into it

a) be a duplicate of the parent process

The only state transition that is initiated by the user process itself is: a) block b) wakeup c) dispatch d) none of the mentioned

a) block

Which process can be affected by other processes executing in the system? a) cooperating process b) child process c) parent process d) init process

a) cooperating process

A set of processes is deadlock if a) each process is blocked and will remain so forever b) each process is terminated c) all processes are trying to kill each other d) none of the mentioned

a) each process is blocked and will remain so forever

In Unix, which system call creates the new process? a) fork b) create c) new d) none of the mentioned

a) fork

If a process fails, most operating systems write the error information to a _________ a) log file b) another running process c) new file d) none of the mentioned

a) log file

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

a) Normally

To access the services of the operating system, the interface is provided by the a) System calls b) API c) Library d) Assembly instructions

a) System calls

What is the ready state of a process? a) when process is scheduled to run after some execution b) when process is unable to run until some task has been completed c) when process is using the CPU d) none of the mentioned

a) when process is scheduled to run after some execution

The Process Control Block is: a) Process type variable b) Data structure c) A secondary storage section d) A block in memory

b) Data structure

Which of the following is not the state of a process? a) New b) Old c) Waiting d) Running

b) Old

A single thread of control allows the process to perform: a) only one task at a time b) multiple tasks at a time c) only two tasks at a time d) all of the mentioned

a) only on task at a time

Which of the following does not interrupt a running process? a) A device b) Timer c) Scheduler process d) Power failure

c) Scheduler process

In UNIX, each process is identified by its: a) Process Control Block b) Device Queue c) Process Identifier d) None of the mentioned

c) Process Identifier

The entry of all the PCBs of the current procceses is in: a) Process Register b) Program Counter c) Process Table d) Process Unit

c) Process Table

The state of a process is defined by: a) the final activity of the process b) the activity just executed by the process c) the activity to next be executed by the process d) the current activity of the process

d) the current activity of the process

The degree of multi-programming is: a) the number of processes executed per unit time b) the number of processes in the ready queue c) the number of processes in the I/O queue d) the number of processes in memory

d) the number of processes in memory

The objective of multi-programming is to: a) Have some process running at all times b) Have multiple programs waiting in a queue ready to run c) to minimize CPU utilization d) None of the mentioned

a) Have some process running at all times

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

a) mutual exclusion

When high priority task is indirectly preempted by medium priority task effectively inverting the relative priority of the two task, the scenario is called a) priority inversion b) priority removal c) priority exchange d) priority modification

a) priority inversion

A semaphore is a shared integer variable a) that can not drop below zero b) that can not be more than zero c) that can not drop below one d) that can not be more than one

a) that can not drop below zero

The main function of the command interpreter is a) to get and execute the next user-specified command b) to provide the interface between the API and application program c) to handle the files in the operating system d) none of the mentioned

a) to get and execute the next user-specified command

A parent process calling ________ system call will be suspended until children processes terminate. a) wait b) fork c) exit d) exec

a) wait

Which system call returns the process identifier of a terminated child? a) wait b) exit c) fork d) get

a) wait

What is a short-term scheduler? a) It selects which process has to be brought into the ready queue b) It selects which process has to be executed next and allocates CPU c) It selects which process to remove from memory by swapping d) None of the mentioned

b) It selects which process has to be executed next and allocates CPU

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

b) Program counter

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

b) Ready 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

b) Ready state

The number of processes completed per unit time is known as _______________ a) Output b) Throughput c) Efficiency d) Capacity

b) Throughput

Which of the following need not necessarily be saved on a context switch between processes? a) General purpose registers b) Translation look-aside buffer c) Program counter d) All of the mentioned

b) Translation look-aside buffer

The child process completes execution, but the parent keeps executing, then the child process is known as: a) Orphan b) Zombie c) Body d) Dead

b) Zombie

What is interprocess communication? a) communication within the process b) communication between two processes c) communication between two threads of the same process d) none of the mentioned

b) communication between two processes

The OS X has ____________________ a) monolithic kernel b) hybrid kernel c) microkernel d) monolithic kernel and modules

b) hybrid kernel

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

b) race condition

The system which allows only on process execution at a time is called a) uniprogramming systems b) uniprocessing systems c) unitasking systems d) none of the mentioned

b) uniprocessing systems

A Process Control Block (PCB) does not contain which of the following: a) Code b) Stack c) Bootstrap program d) Data

c) Bootstrap program

What is a medium-term scheduler? a) It selected which process has to be brought into the ready queue b) It selects which process has to be executed next and allocates CPU c) It selects which process to remove from memory by swapping d) None of the mentioned

c) It selects which process to remove from memory by swapping

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

c) The frequency of their execution

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

c) Zero, A nonzero integer

A mutual exclusion can be provided by the a) mutex locks b) binary semaphores c) both mutex locks and binary semaphores d) none of the mentioned

c) both mutex locks and binary semaphores

If all processes I/O bound, the ready queue will almost always be _______ and the Short term Scheduler will had a ________ to do. a) full, little b) full, lot c) empty, little d) empty, lot

c) empty, little

Which one of the following is not true? a) kernel is the program that constitutes the central core of the operating system b) kernel is the first part of the operating system to load into memory during booting c) kernel is made of various modules which can not be loaded in running operating system d) kernel remains in the memory during the entire computer session

c) kernel is made of various modules which can not be loaded in running operating system

In a multi-programming environment: a) the processor executes more than one process at a time b) the programs are developed by more than one person c) more than one process resides in the memory d) a single user can execute many programs at the same time

c) more than one process resides in the memory

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

c) overloading the system by creating a lot of sub-processes

Which one of the following is a synchronization tool? a) thread b) pipe c) semaphore d) socket

c) semaphore

A process stack does not contain a) Function parameters b) Local variables c) Return addresses d) PID of child process

d) PID of child process

Which one of the following is not a real time operating system? a) VxWorks b) Windows CE c) RTLinux d) Palm OS

d) Palm OS

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

d) Uniprogramming, Multiprocessing

A monitor is a module that encapsulates a) shared data structures b) procedures that operate on shared data structure c) synchronization between concurrent procedure invocation d) all of the mentioned

d) all of the mentioned

A process can be terminated due to a) normal exit b) fatal error c) killed by another process d) all of the mentioned

d) all of the mentioned

In operating systems, each process has its own a) address space and global variables b) open files c) pending alarms, signals and signal handlers d) all of the mentioned

d) all of the mentioned

What is an operating system? a) collection of programs that manages hardware resources b) system service provider to the application programs c) link to interface the hardware and application programs d) all of the mentioned

d) all of the mentioned

Which one of the following errors will be handled by the operating system? a) power failure b) lack of paper in printer c) connection failure in the network d) all of the mentioned

d) all of the mentioned

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

d) context switch time


Ensembles d'études connexes

google ads video certification questions

View Set

Sociology: Chapter 1: Sociology and the Real World

View Set

PHY 2020 Final - Pradhan (Abridged)

View Set

(General Biology II) Chapter 40: The Living World

View Set

ACCT 3130 - Final Exam (Conceptual)

View Set