OSG T2

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

A ____ is a portion of a process that can run independently A. thread B. program C. Mini-process D. subprocess

A

An arrival message causes the system to create a new thread to handle this message. This new thread is call______ A. Pop-up B. Upcall C. Activator D. Distributed

A

In order to implement mutual exclusion on a critical resource for competing processes, only one program at a time should be allowed: A. In the critical region of the program B. To perform message passing C. To exhibit cooperation D. None of the other choices

A

OS Win32 use system call_____, while OS Unix use system call______ to create a new process A. CreateProcess; fork B. fork, CreateProcess C. copy, CreateProcess D. CreateProcess; copy

A

Operating system abstraction supports the ability to have ______ operation even when there is only one CPU available A. pseudoparallelism B. parallel C. multiple D. None of the other choices

A

Which of the following conditions must be held to provide good solution for mutual exclusion? A. No two processes simultaneously in critical region B. No assumptions made about speeds or numbers of CPUs C. No process running outside its critical region may block another process D. No process must wait forever to enter its critical region E. All of the other choices

A

Which of the following conditions that causes the processes to be terminated, when processes have done their work? A. Normal exit (voluntary ) B. Error exit (voluntary) C. Fatal error (involuntary) D. Killed by another process (involuntary)

A

Which of the following statements is a hardware solution to the critical region problem? A. TSL B. Shared memory C. Semaphore D. None of the other choices

A

A entry of the Process table is called: A. Process management block B. Process control block C. Process check block D. All of the other choices

B

A process where no concurrency inside process; everything happens sequentially is called : A. Random access process B. Sequential process C. Sequential access process D. None of the other choices

B

Critical Region (Section) concept used in interprocess communication is: A. A part of shared memory B. A part of the program where the shared memory is accessed C. None of the other choices D. A part of shared data

B

How many percent of the CPU time is wasted, when a computer system has enough room to hold two program and these programs are idle waiting for I/O half the time? A. 50% B. 25% C. 75% D. None of the other choices

B

What is the purpose of process synchronization? A. Let different users run different processes independently B. Avoid race condition C. Avoid deadlock D. None of the other choices

B

Which of the following conditions that causes the processes to be terminated, when the processes have a program bug? A. Normal exit (voluntary ) B. Error exit (voluntary) C. Fatal error (involuntary) D. Killed by another process (involuntary)

B

Which of the following process state transitions is correct, when the operating system discovers that process cannot continue right now because of is not enough resource? A. Running -> Blocked (waiting) B. Running -> ready C. Blocked (waiting) -> ready D. Ready -> running

B

How many percent of the CPU time is wasted, when a computer system has enough room to hold two programs and these programs are idle waiting for I/O 10% of the time? A. 90% B. 99% C. 1% D. None of the other choices

C

How many ways is Thread implemented? A. 1 B. 2 C. 3 D. None of the other choices

C

In a single processor system, mutual exclusion can be guaranteed by: A. Overlapping processes B. Interleaving processes C. Disabling interrupts D. All of the other choices

C

OS Windows use system call_____, while OS Unix use system call______ to terminate processes normally A. exit; ExitProcess B. ExitProcess; exit C. ExitProcess; terminate D. terminate; ExitProcess

C

Sometimes it happens that a thread wants to give another thread a chance to run. It can establish this goal by calling______ A. thread_create B. thread_exit C. thread_wait D. thread_yield

C

What is the "sequential processes" concept? A. There are both many CPU and many PC B. All process is executed in concurrency C. No concurrency inside a process; everything happens sequentially D. None of the other choices

C

Which conditions of mutual exclusion does the Lock Variables (Software proposal) violate? A. No two processes simultaneously in critical region B. No assumptions made about speeds or numbers of CPUs C. No process running outside its critical region may block another process D. No process must wait forever to enter its critical region

C

Which of the following conditions that causes the processes to be terminated, when the processes executes a system call tell the OS to finish some other process? A. Normal exit (voluntary ) B. Error exit (voluntary) C. Fatal error (involuntary) D. Killed by another process (involuntary)

C

In some thread systems, a thread want be blocked until an other thread has exited. It can establish this goal by calling______ A. thread_create B. thread_exit C. thread_wait D. thread_yield

D

The following requirement must be met by any facility or capability that is to provide support for mutual exclusion: A. Only one process at a time can be allowed into a critical section B. A process remains in its critical region for a finite time only C. No assumption can be made about relative process speeds D. All of the other choices

D

What is Software proposal in the solution of Mutual exclusion with Busy waiting? A. Lock Variables B. Strict Alternation C. Peterson's Solution D. All of the other choices

D

Which conditions of mutual exclusion does the Strict Alternation (Software proposal ) violate A. No two processes simultaneously in critical region B. No assumptions made about speeds or numbers of CPUs C. No process running outside its critical region may block another process D. No process must wait forever to enter its critical region

D

Which of the following cannot be shared among different threads of a process? A. Process code B. File handles C. Process data D. Stack

D

Which of the following is appropriate to release page table and pages? A. Process creation B. Process execution C. Page fault time D. Process termination time

D

Which of the following process state transitions is correct, when the external event for which a process was waiting happens? A. Running -> Blocked (waiting) B. Running -> ready C. Blocked (waiting) -> ready D. Ready -> running

D

Which of the following process state transitions is correct, when the scheduler picks a process from the ready queue to run? A. Running -> Blocked (waiting) B. Running -> ready C. Blocked (waiting) -> ready D. Ready -> running

D

Which statement about disabling interrupts to resolve race conditions is wrong? A. In theory, a program can disable interrupts when it enters a critical section, and re-enable interrupts when finished with a critical section, to eliminate race conditions. B. Disabling/enabling interrupts may negatively affect the I/O system. C. Programs with infinite loops in their critical sections are a significant problem with the interrupt-based approach. D. User-mode programs are the best place to invoke disableInterrupt().

D

Which statement about disadvantage of Disabling interrupts, (the hardware solution to the critical region problem) is correct? A. If process is locked in Critical Section: System Halt B. Permit process to use command privileges: Danger! C. Don't ensure Mutual Exclusion for the system with N CPUs D. All of the other choices

D

____ is the act of allowing only one process to have access to a dedicated resource A. No preemption B. Circular wait C. Resource holding D. Mutual exclusion

D

Which of the events that causes the processes to be created, when an operation system is booted? A. System initialization B. Execution of a process creation system call C. User request to create a new process D. Initiation of a batch job

a

Which of the events that causes the processes to be created, when a running process creates one or more new process to help it to do its job? A. System initialization B. Execution of a process creation system call C. User request to create a new process D. Initiation of a batch job

b

A computer has 2GB RAM of which the operating system occupies 1GB. The processes are all 450 MB and have the same characteristics. How many percent of the CPU time is wasted, when these programs are idle waiting for I/O 20% of the time? A. 90% B. 96% C. 4% D. None of the other choices

d

Which of the events that causes the processes to be created, when the operation system creates a new process and runs the next job from the input queue? A. System initialization B. Execution of a process creation system call C. User request to create a new process D. Initiation of a batch job

d

Which of the following process state transitions is illegal? A. Running -> Blocked (waiting) B. Running -> ready C. Blocked (waiting) -> ready D. Ready -> Blocked (waiting)

d


संबंधित स्टडी सेट्स

Chapter 43: Hematological or Immunological Pediatric

View Set

data analysis chapter 11 study guide

View Set

Biology, Light Independent Reactions in Photosynthesis

View Set

NUTR 251 - Smartbook Ch. 13 - Water-Soluble Vitamins

View Set

Outline 15: Leg, Knee, and Popliteal Fossa

View Set

Ch. 28 - Assessment of Hematologic Function and Treatment Modalities Questions

View Set