Lecture 6 (unfinished) Flashcards

1
Q

What is Multi-programming in tems of OS management?

A

The management of multiple processes within a uniprocessor system

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

What is Multi-processing in terms of OS management?

A

The management of multiple processes within a multiprocessor

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

What is Distributed processing in terms of OS management?

A

The management of multiple processes executing on multiple, distributed computer systems

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

What are the 3 different concurrency arises in different contexts?

A

Multiple Applications

Structed Applications

Operating System Structure

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

What is Multiple applications in terms of Concurrency?

A

Invented to allow processing time to be shared among active applications

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

What is Structured applications in terms of Concurrency?

A

Extension of modular design and structured programming

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

What is Operating system structure in terms of Concurrency?

A

OS themselves implemented as a set of processes or threads

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

What is Interleaving and overlapping in terms of Principles of Concurrency

A

Interleaving and overlapping
• Can be viewed as examples of concurrent processing
• Both present the same problems

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

What is a Uniprocessor in terms of the principles of Concurrency?

A

Uniprocessor – the relative speed of execution of
processes cannot be predicted, and depends on:
• Activities of other processes
• The way the OS handles interrupts
• Scheduling policies of the OS

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

What are 2 difficulties of Concurrency?

A
  • Sharing of global resources

* Difficult for the OS to manage the allocation of resources optimally

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

What are some OS Concerns?

A

The OS must:

Be able to keep track of various processes

Allocate and de-allocate resources for each active process

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

What is resource Competition?

A

Concurrent processes come into conflict when
they are competing for use of the same resource
e.g. memory

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

After resource competition a process trying to complete may face 3 problems which are?

A

The need for mutual exclusion
Deadlock
Starvation

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

Why do we need synchornization?

A

Avoid unwanted execution sequence

Ensure integrity in data

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

What is race Condition?

A
  • Occurs when multiple processes or threads read and write data items
  • The final result depends on the order of execution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When do u need Mutual exclusion in terms of software?

A

Software Approaches:
 Implemented for concurrent processes
 Execute on a single-processor or a multiprocessor machine
 Shared main memory

17
Q

What is Cooperation Among Processes by
Sharing?
UNIFINISHED

A

Covers processes that interact with other processes

without being explicitly aware of them

18
Q

What is Cooperation Among Processes by Communication?

UNFINISHED

A

The various processes participate in a common effort that links all of the processes

The communication provides a way to synchronize, or coordinate, the various activities

19
Q

What are 2 Requirements for Mutual Exclusion?

A
  • Mutual exclusion must be enforced: only one process at a time is allowed into its critical section, among all processes that have critical sections for the same resource or shared object
  • A process that halts must do so without interfering with other processes