OS M2

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Select the best answer. The process control block for a four-threaded process will have ________ files set(s).

1

Select the best answer. The process control block for a two-threaded process will have ________ code(s).

1

Select the best answer. The process control block for a two-threaded process will have ________ program counter(s).

2

Select the best answer. The process control block for a two-threaded process will have ________ registers set(s).

2

Select the best answer. The process control block for a three-threaded process will have ________ stack(s).

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 = 3 Memory scheduler = 2 CPU scheduler = 1

Matching. In the context of process management, match the schedulers.

Admission/Job scheduler = Long-term scheduler Memory scheduler = medium-term scheduler CPU scheduler = short-term scheduler

Select the best answer. In the process control block, this one is an intruder.

CPU

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.

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

Select the best answer. In order to take back control of the CPU from a user process currently running,

None of these answers

Select the best answer. 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?

None of these answers

Select the best answer. This scheduler is involved when a process initiates an I/O operation.

None of these answers

Select the best answer. This scheduler is involved when an I/O operation is completed.

None of these answers

Select the best answer from each dropdown menu. - The short-term scheduler moves processes between the [ Select ] ["On-CPU (running)", "waiting/blocked", "suspended ready", "suspended waiting/blocked", "job"] queue and the [ Select ] ["waiting/blocked", "suspended ready", "suspended waiting/blocked", "On-CPU (running)", "ready"] queue.

On-CPU (running) ready

Select all that apply. Check all that apply to a three-threaded process.

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

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

True

Select all that apply. Using three-threaded process to implement a program will raise these problems:

data-shared problem

Select all that apply. Check all adjectives that apply to a program

dead passive

Select the best answer. Linux and most operating systems implement the process control blocks of the processes in this data structure:__________________.

double-linked list

Select all that apply. Check all adjectives that apply to a process

dynamic active

Select all that apply. Check all that apply to CPU-bound processes

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 ] ["heap", "data", "ID", "code"] size varies while the [ Select ] ["code", "stack", "heap", "kernel"] size does not.

heap code

Select all that apply. Check all that apply to performance of batch systems:

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

Select the best answer. The program will transform into a process after _______________.

it is launched

A process is sometimes referred in the textbook as ____________.

job

Select the best answer from each dropdown menu. - The long-term scheduler moves processes between the [ Select ] ["waiting/blocked", "On-CPU (running)", "suspended waiting/blocked", "job"] queue and the [ Select ] ["On-CPU (running)", "ready", "waiting/blocked", "suspended waiting/blocked"] queue.

job ready

Matching. Match the queues to the processes in them

job queue = processes just admitted in the system ready queue = processes waiting only on the CPU to execute waiting/blocked queue = processes that just initiated an I/O operation suspended ready queue = processes waiting on the CPU and memory to execute suspended waiting/blocked queue = processes waiting on memory and I/O operations to complete

Select the best answer. This scheduler controls the degree of multiprogramming.

long-term scheduler

Select the best answer. This scheduler is involved when a new process must be admitted in the system.

long-term scheduler

Select the best answer. This scheduler ponders whether resources are sufficient to admit a new process.

long-term scheduler

Select the best answer. This scheduler is involved when a process must be swapped out from the main memory.

medium-term scheduler

Select the best answer. This scheduler ponders whether there is enough memory for the processes already admitted in the system.

medium-term scheduler

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

new

Select all that apply. Check all that apply to I/O-bound processes

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

PCB stands for .

process control block

Select all that apply. Check all that a process has and the program does not.

process control block stack heap

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

process id

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

Select the best answer from the dropdown menu. Assuming the five states diagram for a process, a process P is ready 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 P is ready 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 is ready 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 running 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 save P0's PCB and then reload P1's PCB .

save P0's PCB reload P1's PCB

Select the best answer. This scheduler is involved when a process must be kicked out from the CPU.

short-term scheduler

Select all that apply. Check all schedulers that may be invoked right after a process terminates.

short-term scheduler medium-term scheduler

Select all that apply. Check all that apply to performance of Time-shared systems:

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

Select the best answer from each dropdown menu. For a process in general, the [ Select ] ["data", "stack", "code", "ID"] size varies while [ Select ] ["stack", "kernel", "heap", "data"] size does not.

stack data

Select all that apply. Check all that a process has and the program does not.

stack heap process control block

Select all that apply. Check all that a program and a process share in common.

text (code) data

Select the best answer from the dropdown menu. Assuming the five states diagram for a process, a process is waiting/blocked 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 ] ["On-CPU (running)", "waiting/blocked", "job"] queue and the [ Select ] ["On-CPU (running)", "ready", "suspended waiting/blocked", "waiting/blocked"] queue.

waiting/blocked suspended waiting/blocked


Kaugnay na mga set ng pag-aaral

KOT budowa i metabolizm kw nukleinowych od LuckShadow, Nukleotydy, Kwasy nukleinowe

View Set

Chapter 9: Lifespan Development Questions

View Set

Chapter 2: The History and Evolution of Social Welfare Policy

View Set

Practice Questions/Helpful Tips (NUR3028 Medication Calculation Review)

View Set

Medication Administration Week 3

View Set

Chapter 16 Real Estate Appraisal

View Set

2020 Computer Architecture Final

View Set