Chapter 6 (Quiz 4 Portion) Flashcards

CPU Scheduling, Basic Concepts, Scheduling Criteria, Scheduling Algorithms, Thread Scheduling, Multiple-Processor Scheduling, Real-Time CPU Scheduling, Operating Systems Examples, Algorithm Evaluation.

1
Q

When does CPU scheduling decisions take place?

A

1- Switching from running to waiting state.
2- Switching from running to ready state.
3- Switching from waiting to ready.
4- Terminates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is “Non-preemptive”?

A

The process from 1 to 4, the process cannot be interrupted has to run until the end.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is “Preemptive”?

A

The process from 5 and up, in the ready queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the details of Preemptive?

A

1- Shared data.
2- Kernel mode.
3- Interrupts during crucial OS activities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the “Dispatcher Module”?

A

Gives control of the CPU to the process selected by the short-term scheduler.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the Dispatcher Module involve?

A

1- Switching context.
2- Switching to user mode.
3- Jumping to the location in the user program to restart that program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is “Dispatch lantency”?

A

Time it takes for the dispatcher to stop one process and start another running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the CPU scheduling criteria?

A

1- CPU utilization.
2- Throughput.
3- Turnaround time.
4- Waiting time.
5- Response time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is “CPU utilization”?

A

keep the CPU as busy as possible.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is “Throughput”?

A

number (#) of processes that complete their execution per time unit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is “Turnaround time”?

A

amount of time to execute a particular process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is “Waiting time”?

A

amount of time a process has been waiting in the ready queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the CPU scheduling algorithm optimization criteria?

A

1- Max CPU utilization.
2- Max Throughput.
3- Min Turnaround time.
4- Min Waiting time.
5- Min Response time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is “Starvation” in CPU Priority Scheduling?

A

Low priority processes may never execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is “Aging” in CPU Priority Scheduling?

A

As time progresses increase the priority of the process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the difference of “foreground” & “background” of Multilevel Queue?

A

Foreground :-
1- Interactive.
2- Uses RR. (Round Robin)
3- Uses 80% of the system.
Background :-
1- Batch.
2- Uses FCFS. (First- Come, First-Served)
3- Uses 20% of the system.

17
Q

What is “Load balancing”?

A

Attempts to keep workload evenly distributed.

18
Q

What is “Push migration”?

A

Periodic task checks load on each processor, and if found pushes task from overloaded CPU to other CPU’s.

19
Q

What is “Pull migration”?

A

Idle processors pulls waiting task from busy processor.

20
Q

What is “Soft real-time systems”?

A

No guarantee as to when critical real-time process will be scheduled.

21
Q

What is “Hard real-time systems”?

A

Task must be serviced by its deadline.