From e49a70c1240ead8c47b902da25ceb24b64d9153d Mon Sep 17 00:00:00 2001 From: Remzi Arpaci-Dusseau Date: Thu, 16 May 2019 16:15:24 -0500 Subject: [PATCH] README update to add throttle.c discussion --- threads-sema/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/threads-sema/README.md b/threads-sema/README.md index 652e1e5..75e8100 100644 --- a/threads-sema/README.md +++ b/threads-sema/README.md @@ -63,3 +63,11 @@ Run `make` to build all of them with the highly primitive `Makefile`. Code in `zemaphore.c`. We bet you can figure out the rest. This is just a small test of the Zemaphore with the fork/join problem. + + +# Throttle + +Bonus code that shows how semaphores can be used to throttle how +many different threads run through a certain bit of code at a time. +Code in `throttle.c`. +