Lecture 7 - C++ Concurrency Intro Flashcards

1
Q

What is concurrency?

A

a programming paradigm which is to deal with a lot of things at once

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

What is parallelism?

A

making things faster, it just so happens a program can have parts running simultanously

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

What is concurrency achieved with?

A

Threads

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

What is a thread?

A

A chunk of a program, which is part of a process and shares its address space with other threads

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

How do threads communicate?

A

Via shared memory space

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

What does mutual execution avoid?

A

Having race conditions

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

What is coordination?

A

How we compute, what threads, how to synchronise

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

What is computation?

A

What we actually compute

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

What is a Monitor?

A

a thread-safe class as every method is synchornised (common in Java)

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

What are condition variabels?

A

These avoud busy waiting for a condition to be true, as essentially condition flags

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