Parallel Sytems Flashcards

1
Q

Name the 4 fundamental concepts of PS

A

Processes, Channels, Timers, Alternative Selection

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

Name a key aspect of parallel system design

A

Processes can be composed into larger networks of processes

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

What is a Process

A

defines a sequence of instructions that are to be carried out

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

What does a Process do

A

a process will communicate with another process using a channel to transfer data from one to the other

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

How many methods does a process have

A

one - run() - this is used to invoke the process

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

What is PAR

A

Parallel object - PAR takes a list of processes and causes them to be run in parallel

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

How do you execute processes in parallel

A

Pass a list of process instances to the PAR Object which when run causes parallel execution of all the processes in the list

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

How is data handled by a process

A

A process encapsulates the data upon which it operates. Such data can only be communicated to or from another process and hence all data is private to a process.

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

What is a Channel

A

A channel is the means by which a process communicates with another process

A channel is a one-way, point-to-point connection between two processes

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

What is the role of a Channel

A

A process writes to a channel and another process reads from the channel.

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

Give advantages of Channels

A

They are unbuffered, data cannot be lost

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

Give an example of a design pattern used in parallel systems

A

Producer-Consumer

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

what is a producer process

A

A Producer process is one that outputs a sequence of distinct data values

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

what is a consumer process

A

one that inputs a stream of such data values and then processes them in some way

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

name an advantage of the Producer Consumer process

A

the processes synchronise with each other when they transfer data over the channel

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

what does the notation $v indicate

A

the variable v should be evaluated to its String representation