B3CC: Concurrency 01: Introduction
Trevor L. McDonell Utrecht University, B2 2020-2021
B3CC: Concurrency 01: Introduction Trevor L. McDonell Utrecht - - PowerPoint PPT Presentation
B3CC: Concurrency 01: Introduction Trevor L. McDonell Utrecht University, B2 2020-2021 Today 1. Introduction 2. What is concurrency? 2 Course structure 3 henlo Trevor L. McDonell - BBG 5.68 MS Teams - t.l.mcdonell@uu.nl mention
B3CC: Concurrency 01: Introduction
Trevor L. McDonell Utrecht University, B2 2020-2021
Today
2
Course structure
3
henlo
mention [INFOB3CC] in the subject
4
ig: jasper.samoyed
Teaching assistants
5
Human malware
6
https://imgur.com/gallery/ooZcL1b
Coffeebot
interaction!
7
ig: sarahandersencomics
Topics
8
Goals
9
Haskell
10
https://xkcd.com/1312
Homepage
11
Resources
https://simonmar.github.io/pages/pcph.html
http://www.cs.uu.nl/docs/vakken/b3cc/ resources.html
12
Sessions
13
Course components
14
If you wait until the last minute, it only takes a minute to do. — Key Skills for Professionals, 2013, pp65
Software installation
15
Concurrency control
16
What is concurrency?
17
What is parallelism?
running time (wall clock) of the program: parallel execution
18
Question
19
Concurrency vs. Parallelism
20
Concurrency
approaches: it is up to you to pick which is right for your application
21
Concurrency control
connected by a network
22
Concurrency control
23
Example: access to a global queue
24
head last
Example: access to a global queue
25
head last
Example: access to a global queue
26
head last
Example: access to a global queue
27
head last
Example: concurrent access to a global queue
28
head last
Example: concurrent access to a global queue
29
head last
Example: concurrent access to a global queue
30
head last
Example: concurrent access to a global queue
31
head last
Example: concurrent access to a global queue
32
head last
Example: concurrent access to a global queue
33
head last
Example: concurrent access to a global queue
34
head last
Example: concurrent access to a global queue
resources: critical sections
35
head last
Example: concurrent access to a global queue
it was suspended
36
Concurrency control
37
Concurrency control
38
Requirements for mutual exclusion
with other threads
section
39
Mutual exclusion
40
Therac-25
administered directly to the patient
41
https://en.wikipedia.org/wiki/Therac-25
Northeast blackout (2003)
problem—which cascaded into complete collapse of the electrical grid
42
https://en.wikipedia.org/wiki/Northeast_blackout_of_2003
Mars Pathfinder
43
https://en.wikipedia.org/wiki/Mars_Pathfinder
Next time…
44
Photo by Jf Brou
Extra slides
Techniques for dealing with lack of motivation, malaise, depression
46