From 113690292a67c2d6982bbd39dd9f477998bb5b07 Mon Sep 17 00:00:00 2001 From: Haile Lagi <52631736+hailelagi@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:24:28 +0100 Subject: [PATCH] starvation incl --- content/notes/atomics.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/content/notes/atomics.md b/content/notes/atomics.md index 3ad9841..5e4afb0 100644 --- a/content/notes/atomics.md +++ b/content/notes/atomics.md @@ -5,9 +5,7 @@ draft: false --- {{% callout %}} -This initial draft was to make some notes while reading marabos' atomics and locks, -and somehow transmogrify key concepts, distilling yet and perhaps wrapping it into a case study of -some sort, perhaps `WTF::parking_lot` or my own lock-free linked-list, sadly, although it does not meet any standards of quality or +random notes and scribbles, does not meet any standards of quality or comprehension, here it is, anyway, otherwise it may never escape my drafts. {{% /callout %}} @@ -143,7 +141,7 @@ fn increment(a: &AtomicU32) { ## Locks - Mutexes/ RwLock etc design axis: -- fairness (FIFO) +- fairness (FIFO) vs starvation - correctness (mutual exlusion) - performance (syscall overhead, space etc) - priority inversion