Chapter 10 (Multiprocessor and Real-Time Scheduling) Flashcards

1
Q

What are the classifications of multiprocessor systems?

A

Loosely coupled

Tightly coupled

Functionally specialized

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

Which classification of multiprocessor systems have its own memory and I/O channels?

A

Loosely coupled

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

Which classification of multiprocessor systems share main memory and are controlled by an OS?

A

Tightly coupled

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

What are the different levels of granularity?

A

Independent parallelism

Course/Very coarse-grained parallelism

Medium-grained parallelism

Fine-grained parallelism

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

What is independent parallelism?

A

Unrelated processes, no synchronization

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

What is course/Very coarse-grained parallelism

A

Gross level of synchronization

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

What is medium-grained parallelism

A

Parallelism within an application (threads)

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

What is fine-grained parallelism

A

Parallelism within an instruction stream

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

Which granularity has this characteristic: Scheduling decisions of one thread may affect the performance of the entire application.

A

Medium-grained parallelism

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

Which granularity has this characteristic: Supported by either a multiprogrammed uniprocessor or a multiprocessor with little or no impact on scheduling.

A

Independent, course, and very-course parallelsim

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

What are the two methods of assigning processes to processors?

A

Static assignment

Variable assignment

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

Advantages of static assignment

A

May require less overhead in the scheduling function since processor assignment is only made once

Permits group or gang scheduling

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

What are the disadvantages of static assignment?

A

Doesn’t distribute workload well (process could wait while CPU is free)

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

What are characteristics of variable assignment?

A

Assigns process from single queue to any free processor

Distributes work load more evenly

Cost of scheduling a process is independent of the particular processor on which it is scheduled

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

What are some means to decide which process will execute on which processor?

A

Master/slave

Peer approach

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

What is the peer approach?

A

Processors do self-scheduling

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

What is the master/slave approach?

A

One CPU dedicated to OS and schedules all jobs

18
Q

T/F The particular scheduling algorithm chosen for multiprocessor systems is less important than for uniprocessor systems

A

T

19
Q

What are four approaches for multiprocessor thread scheduling?

A

Load sharing

Gang scheduling

Dedicated processor assignment

Dynamic scheduling

20
Q

Advantages of load sharing

A

Even distribution of work across CPU’s

No centralized scheduler required

Each processor selects a process from a global ready queue

21
Q

Disadvantages of load sharing

A

Global queue may become a bottleneck

Preempted threads unlikely to resume on same CPU, less efficient caching

Unlikely to have all threads of a program executing at the same time

22
Q

What is gang scheduling?

A

Scheduling threads of a single process to run at the same time

23
Q

How does dedicated processor assignment result in a speedup?

A

Avoids process switching by dedicating a group of processors to an application for the duration of its execution

24
Q

What are unused allocated processors in dedicated processor assignment similar to?

A

Fragmentation

25
Q

What is a hard real-time task?

A

One that must meet its deadline or else it could cause system failure

26
Q

What is a soft real-time task?

A

One that should meet its deadline but is not mandatory.

27
Q

What are aperiodic real-time tasks?

A

Has a deadline or time constraint by which it must start or finish

28
Q

What are periodic real-time tasks?

A

Once per time period T, or exactly T time units apart

29
Q

What are the characteristics of real-time operating systems?

A
Determinism
Responsiveness
User control
Reliability
Fail-soft operation
30
Q

What is determinism?

A

The extent to which the OS performs an operation at fixed, predetermined times or within predetermined time intervals

31
Q

What is responsiveness?

A

How long it takes to service an interrupt once it has been acknowledged

32
Q

What is user control?

A

User is given a much higher degree of control over the scheduling of tasks in a real-time OS

33
Q

What is fail-soft operation?

A

The ability to fail in such a way as to preserve as much capability and data as possible

34
Q

What’s the difference between fail-safe and fail-soft?

A

Fail-soft maintains partial functionality while fail-safe avoids unsafe behavior

35
Q

What are the four basic approaches to real-time scheduling?

A

Static table-driven

Static priority-driven

Dynamic planning-based

Dynamic best effort

36
Q

What is static table-driven scheduling?

A

Schedule is computed in advance from set of jobs and their requirements

37
Q

What is static priority-driven?

A

Priorities are assigned to jobs in advance from set of jobs and their requirements

38
Q

What is dynamic planning-based?

A

Allows accepting new tasks at run-time

39
Q

What is dynamic best effort?

A

Assigns priorities based on task characteristics

40
Q

T/F Rate-Monotonic scheduling performs worse than earliest deadline scheduling

A

F, it performs almost as well as earliest deadline

41
Q

T/F Rate-Monotonic can be easier to achieve stability by giving essential tasks shorter periods and thus higher priorities

A

T