10. DS contrasted with Centralised ones Flashcards

How we arrived at DS from sequential, centralised ones

1
Q

Machine =

A

Computing (processor) + Storage Resources (memory)

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

Resource usage is controlled by?

A

OS

This aims to make the most efficient use possible of the resources

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

OS assigns each process …? then controls how a process is granted access to…?

A

A unique identity. Address Space

OS controls a processes access to computing and storage resources.

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

What is the role of the OS in a sequential, isolated process?

A

ensure no other process tampers with its data and only that process has access

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

How is sequential, isolated processing bounded and limiting?

A

If a function is more computationally demanding that an single machine can cope with
If we wish to run functions concurrently (different processes) or in parallel (different processors)
If the functions are proprietary services helped in remote machines we cant hold local copies of

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

Whats the main advantage of non-sequential, non-isolated processing?

A

Can switch between processes for example if one is idle and waiting for something.

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

What is multiprocessing?

A

OS multitasks- allowing more than one process to be underway by controlling how it makes use of its resources.
It does this by implementing a scheduling policy which grants each active process a time source to its resources.
A group of processes is active concurrently.

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

What is multiprocessing by forking?

A

A process asks the OS to make a copy of itself. This copy gets an independent copy of the parent address space. Parent can continue or wait for child to execute.

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

Where is multiprocessing by forking common?

A

Client-server type Distributed Computing

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

Pros and cons of multiprocessing by forking?

A

Can be expensive because of forking.
Modern OSs have strategies that make it affordable.
Safe as address spaces are distinct
Best practice is required to avoid zombie processes and unintended sharing of references to files

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

What is multiprocessing by threading?

A

A process asks the OS to make a copy of itself. It assigns the same address space as the parent to the child. Parent and child may been to interact and share variables. Makes threading less expensive and less safe.

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

What allows concurrent computation?

A

Multithreading

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

What enables parallel computation?

A

Multiple processors

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

What is a centralised system?

A

The OS ensures each process has a single address space, exclusive to it.

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

What is a (seemingly) concurrent system?

A

The OS schedules the execution of n copies of a process to run in the same processor in an interleaved fashion (time slicing), typically sharing an address space

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

What is a parallel system?

A

The n copies of a process each run on a different processors bound by an interconnect (i.e. a bus) or engineered as chip multi-processors. They could share a single address space

17
Q

What is a distributed system?

What about Distributed ++?

A

The n (not necessarily identical) processes each run on different machines that cannot share a single address space so must communicate.

Distributed ++: complexity reaches a point in which applications are not written against OS services. Instead they are written against middleware API