Concurrency/Threading Flashcards

1
Q

two conditions to run programs in parallel

A

you need additional hardware to be able to run simultaneously and both programs must be strictly unrelated in order to run in parallel

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

What are processors made up of and what is it

A

Made up on cores and each can process only one instruction at a time

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

Whats a thread?

A

Subprocess of a program with less overhead

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

What do multi-threaded program mean

A

It takes additional threads and cores to distribute the load of a program more efficiently

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

Race conditions

A

Created when two processes fight for the same resource

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