Lecture 13 - Threads Flashcards

1
Q

Concurrency vs Parallelism

A

Concurrency is doing many things at the same time. Parallelism is splitting one big job into several small tasks onto multiple processors.

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

Heisenbugs

A

Bugs that appear due to different expectations with respect to scheduling.

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

Synchronization

A

As soon as one thread enters a synchronized method of Object O, no other thread can enter a synchronized method of Object O.

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

Threads v Processes

A

A process is a running program. Within one process, you can do multiple things at the same time. This is done by threads. Threads in a specific process work with the same piece of memory.

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