Skip to content

Commit

Permalink
dump
Browse files Browse the repository at this point in the history
Signed-off-by: Haile Lagi <[email protected]>
  • Loading branch information
hailelagi committed Nov 4, 2024
1 parent c3acd74 commit d448ae1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 33 deletions.
29 changes: 29 additions & 0 deletions content/notes/art_of_multicore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "The art of multicore"
date: 2024-11-04T10:13:39+01:00
draft: true
---

# Introduction
- liveness & safety
- performance often requires looking behind the invisible hand of the memory heirarchy
- concurrent shared counter viz finding primes `volatile counter` + thread local stack copying
- beer cans are conditional variables

## the problems
at the heart are communication and co-ordination problems

- mutual exclusion
- starvation-freedom
- producer-consumer
- the readers-writers problem

> Amdahl’s Law says that even if we manage to parallelize 90% of the solution, but not the remaining 10%, then we end up with a five-fold speedup, but not a ten-fold speedup.

# Principles
## Mutual Exclusion
Threads are state machines, events are transitions of state.
Time is is an abstracct property independent of the wall clock.
We use the relationship -> precedence.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Query_execution"
title: "Query Execution"
date: 2024-10-27T14:32:18+01:00
draft: true
---
Expand Down
21 changes: 0 additions & 21 deletions content/writing/design-patterns.md

This file was deleted.

11 changes: 0 additions & 11 deletions content/writing/dining.md

This file was deleted.

0 comments on commit d448ae1

Please sign in to comment.