Module 2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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

1

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

1

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

1

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

1

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

1

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

2

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

2

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

2

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

2

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

3

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

3

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

CPU

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. CPU scheduler Memory Admission

CPU scheduler Memory Admission

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

Context switch CPU switch

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

F

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

F

Select all that apply. Check all that apply to performance of Time-shared systems: Have a lower throughput than batch systems None of these answers great response time Exceptionally high throughput (Jobs performed/time) Very interactive system

Have lower great response time very interactive

Which Queue? Process just admitted into the system

Job Queue

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

Med

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

None

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

None

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

None

The short-term scheduler moves processes between the --- queue and the --- queue.

On CPU (running) ready

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

Perform more IO operations than computations have very short CPU burst

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

Process ID

What does PBC stand for

Process control Block

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

Short term

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

Short term Medium term

T or F A process is a program in execution

T

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

active dynamic

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

data text

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

double linked list

Select all that apply. Check all that apply to performance of batch systems: great throughput (Jobs performed/time) None of these answers Implemented on the latest desktops great response time Very interactive system

great throughput (Jobs performed/time)

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

have some very long CPU bursts use very few IO operations

Select all that apply. Check all that a process has and the program does not. heap stack data PCB None

heap stack PCB

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

it is launched

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

job

The long-term scheduler moves processes between the --- queue and the --- queue.

job ready

Admission/Job schedule is also known as

long term

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

long term

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

long term

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

long term

Memory scheduler is also known as

medium

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

medium

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

more flex less resources include 3 program counters

Assuming the five states diagram for a process, the process is ---- when the process does not yet have any resource.

new

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

passive dead

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

program counter

Assuming the five states diagram for a process, the process is ---- right after the operating system preempts (takes away) the CPU.

ready

Assuming the five states diagram for a process, the process is ---- when the process has enough memory allocated, but does not "have" the CPU.

ready

Assuming the five states diagram for a process, the process is ----- right after all I/O request/operations are complete.

ready

Which Queue? Process waiting only on the CPU to execute

ready Queue

Assuming the five states diagram for a process, the process is ----- when the process has enough memory allocated and the CPU as well.

running

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 --- and then ---

save P0's PCB reload P1's PCB .

CPU scheduler is also known as

short term

For a process in general the ----, varies while --- size does not

stack, data

Which Queue? Process waiting on the CPU and memory to execute

suspended ready queue

Which Queue? Process waiting on memory and IO operation to complete

suspended waiting/block queue

Which Queue? Process that just initiated an IO operation

waiting/blcok

Assuming the five states diagram for a process, the process is ----- right after it initiates an I/O request/operation.

waiting/blocked

The medium-term scheduler moves processes between the ---- queue and the ----queue.

waiting/blocked suspended waiting/blocked


Set pelajaran terkait

Chapter 28: Caring for Clients with Heart Failure

View Set

Principals of Business Management Exam 2

View Set

Purpose of Life and Health Insurance

View Set

Transitional Justice Study Guide

View Set

Ch. 6 What Does Representative Democracy Involve?

View Set