m2

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

True or False? A process is a program in execution.

True

Select the best answer from the dropdown menu. Assuming the five states diagram for a process, the process is [ Select ] when the process does not yet have any resource.

new

The process control block for a two-threaded process will have ________ program counter(s). None of these answers 1 3 2 0

2

The process control block for a four-threaded process will have ________ files set(s). 3 4 1 None of these answers 2

1

The process control block for a three-threaded process will have ________ data segment(s). 3 None of these answers 0 1 2

1

The process control block for a two-threaded process will have ________ code(s). 2 None of these answers 1 3 0

1

The process control block for a two-threaded process will have ________ registers set(s). 1 2 0 3 None of these answers

2

The process control block for a three-threaded process will have ________ stack(s). 0 None of these answers 2 1 3

3

Matching. We want to sort the different schedulers from the most to the least frequently invoked by the operating system. The most frequent must be assigned 1. Admission/Job scheduler Memory scheduler CPU scheduler

Admission/Job scheduler 3 Memory scheduler 2 CPU scheduler 1

In the process control block, this one is an intruder. CPU Process ID None of these answers Program counter Process state

CPU

Select all that apply. When the OS preempts the CPU from a process and assigns it to another, this operation is called: ____________ . (check all that would apply) CPU switch process switch context switch None of these answers OS switch

CPU switch context switch

True or False? A multithreaded process with three threads will require more resources that three single-thread processes.

False

True or False? A process is a program.

False

True or False? On modern operating systems for laptops, the process control block includes account information for billing.

False

Select all that apply. Check all that apply to a three-threaded process. The process control block will include one program counter It requires less resources than three single-threaded processes It offers more flexibility for the programmer It requires OS communication channels between the three threads inside the process The process control block will include three program counters

It requires less resources than three single-threaded processes It offers more flexibility for the programmer The process control block will include three program counters

Matching. In the context of process management, match the schedulers. Admission/Job scheduler Memory scheduler CPU scheduler

Long-term scheduler medium-term scheduler short-term scheduler

In order to take back control of the CPU from a user process currently running, the user process executes the instruction "Set Kernel Mode" the OS executes the instruction "Set Kernel Mode" the user process executes the instruction "Set User Mode" None of these answers the OS executes the instruction "Set User Mode"

None of these answers

Suppose that no process is in the ready queue and the CPU is available. From which queue should the CPU scheduler select the next process to run/execute? new suspended ready terminated None of these answers waiting/blocked

None of these answers

This scheduler is involved when a process initiates an I/O operation. medium-term scheduler Admission scheduler short-term scheduler None of these answers long-term scheduler

None of these answers

This scheduler is involved when an I/O operation is completed. short-term scheduler long-term scheduler Admission scheduler None of these answers medium-term scheduler

None of these answers

Select the best answer from each dropdown menu. - The short-term scheduler moves processes between the [ Select ] queue and the [ Select ] queue.

On-CPU (running) ready

PCB stands for __________ __________ __________.

Process Control Block

Select all that apply. Check all that apply to a three-threaded process. The three threads have separate data segments The three threads share the process stack The three threads have separate stacks None of these answers The three threads share the process data segment

The three threads have separate stacks The three threads share the process data segment

Select all that apply. Check all adjectives that apply to a process active dynamic None of these answers passive dead

active dynamic

Select all that apply. Check all that a program and a process share in common. None of these answers data heap text (code) stack

data text (code)

Select all that apply. Using three-threaded process to implement a program will raise these problems: requires more resources that three single processes process/thread synchronization data-shared problem stack-shared problem code-shared problem

data-shared problem

Select all that apply. Check all adjectives that apply to a program dead passive active None of these answers dynamic

dead passive

Linux and most operating systems implement the process control blocks of the processes in this data structure:__________________. array stack linked list None of these answers double-linked list

double-linked list

Select all that apply. Check all that apply to CPU-bound processes have some very long CPU bursts None of these answers have very short CPU bursts use very few I/O operations perform more I/O operations than computations

have some very long CPU bursts use very few I/O operations

Select the best answer from each dropdown menu. For a process in general, the [ Select ] size varies while the [ Select ] size does not.

heap code

Select all that apply. Check all that a process has and the program does not. None of these answers heap stack process control block data

heap stack process control block

Select all that apply. Check all that apply to performance of batch systems: small response time higher throughput (Jobs performed/time) than time-sharing systems implemented on the latest desktops None of these answers interactive system

higher throughput (Jobs performed/time) than time-sharing systems

Select all that apply. Check all that apply to performance of Time-shared systems: None of these answers interactive system has a lower throughput than batch systems small response time higher throughput (Jobs performed/time) than batch systems

interactive system has a lower throughput than batch systems small response time

The program will transform into a process after _______________. you set a shortcut for it on the desktop deleted from the secondary storage it is launched it is downloaded from the Internet None of these answers

it is launched

Select all that apply. A process is sometimes referred in the textbook as ____________. None of these answers code data job block

job

Select the best answer from each dropdown menu. - The long-term scheduler moves processes between the [ Select ] queue and the [ Select ] queue.

job ready

This scheduler controls the degree of multiprogramming. long-term scheduler short-term scheduler None of these answers medium-term scheduler memory scheduler

long-term scheduler

This scheduler is involved when a new process must be admitted in the system. long-term scheduler short-term scheduler memory scheduler medium-term scheduler None of these answers

long-term scheduler

This scheduler ponders whether resources are sufficient to admit a new process. None of these answers long-term scheduler short-term scheduler medium-term scheduler memory scheduler

long-term scheduler

This scheduler ponders whether resources are sufficient to admit a new process. short-term scheduler long-term scheduler medium-term scheduler None of these answers memory scheduler

long-term scheduler

This scheduler is involved when a process must be swapped out from the main memory. None of these answers medium-term scheduler long-term scheduler short-term scheduler CPU scheduler

medium-term scheduler

This scheduler ponders whether there is enough memory for the processes already admitted in the system. Admission scheduler short-term scheduler medium-term scheduler None of these answers long-term scheduler

medium-term scheduler

Select all that apply. Check all that apply to I/O-bound processes perform more I/O operations than computations None of these answers have long CPU bursts have short CPU bursts spend more time doing computations

perform more I/O operations than computations have short CPU bursts

The process control block includes the attribute _________________ to identify individually processes.

process id

Matching. Match the queues to the processes in them job queue ready queue waiting/blocked queue suspended ready queue suspended waiting/blocked queue

processes just admitted in the system processes waiting only on the CPU to execute processes that just initiated an I/O operation processes waiting on the CPU and memory to execute processes waiting on memory and I/O operations to complete

In the process control block, the ______________ keep(s) track of the address of the next instruction to be executed by the process. program counter process ID registers None of these answers I/O status information

program counter

Select the best answer from the dropdown menu. Assuming the five states diagram for a process, a process P is SELECT right after the operating system preempts (takes away) the CPU from P.

ready

Select the best answer from the dropdown menu. Assuming the five states diagram for a process, a process P is [ Select ] right after all I/O request/operations are completed for P.

ready

Select the best answer from the dropdown menu. Assuming the five states diagram for a process, a process is [ Select ] when the process has enough memory allocated, but is not allocated the CPU.

ready

Select the best answer from the dropdown menu. Assuming the five states diagram for a process, a process is [ Select ] when the process has enough memory allocated and the CPU as well.

running

Select the best answer from each dropdown menu. Process P0 is initially running. The operating system (OS) plans to take the CPU from Process P0 and assign it to Process P1. The OS will SELECT and then SELECT .

save P0's PCB reload P1's PCB

This scheduler is involved when a process must be kicked out from the CPU. medium-term scheduler None of these answers long-term scheduler memory scheduler short-term scheduler

short-term scheduler

Select all that apply. Check all schedulers that may be invoked right after a process terminates. None of these answers long-term scheduler short-term scheduler admission scheduler medium-term scheduler

short-term scheduler medium-term scheduler

Select the best answer from each dropdown menu. For a process in general, the [ Select ] size varies while [ Select ] size does not.

stack data

Select the best answer from the dropdown menu. Assuming the five states diagram for a process, a process is [ Select ] right after it initiates an I/O request/operation.

waiting/blocked

Select the best answer from each dropdown menu. - The medium-term scheduler moves processes between the [ Select ] queue and the [ Select ] queue.

waiting/blocked suspended waiting/blocked


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

Chapter 20 21 22 23 24 25 26 27 28 29

View Set

Introduction to Proof Assignment and Quiz

View Set

Intro to Psychology - Chapter 11 Exam

View Set

Chapter 29: Introduction to Business Organization-Business Law

View Set

Social Psychology - Lecture 8 (Empathy)

View Set

Comptia Project + - Project Basics

View Set

nclex pn nursing process implementation

View Set