Lecture 7 - C++ Concurrency Intro Flashcards
What is concurrency?
a programming paradigm which is to deal with a lot of things at once
What is parallelism?
making things faster, it just so happens a program can have parts running simultanously
What is concurrency achieved with?
Threads
What is a thread?
A chunk of a program, which is part of a process and shares its address space with other threads
How do threads communicate?
Via shared memory space
What does mutual execution avoid?
Having race conditions
What is coordination?
How we compute, what threads, how to synchronise
What is computation?
What we actually compute
What is a Monitor?
a thread-safe class as every method is synchornised (common in Java)
What are condition variabels?
These avoud busy waiting for a condition to be true, as essentially condition flags