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
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
3
Q
Whats a thread?
A
Subprocess of a program with less overhead
4
Q
What do multi-threaded program mean
A
It takes additional threads and cores to distribute the load of a program more efficiently
5
Q
Race conditions
A
Created when two processes fight for the same resource