Abstract Modeling

Summary

Programmers’ View


Untitled

Untitled

<aside> 💡 Problems

Non-deterministic ⇒ Difficult to find & reproduce a bug

Untitled

Solution ⇒ Using locks (Mutex = Mutual Exclusion)

</aside>

A concurrent program

= concurrent objects + their clients

Untitled

Another example

Another example

<aside> 💡 Asynchrony

Sudden unpredictable delays

Memory Models

A memory model describes the writes and reads of threads


Interleaving semantics ⇒ Sequential Consistency (SC) model

(Weak/Relaxed) Memory Models