From c9003adce40d2e86df579c26b083b63c16c029b5 Mon Sep 17 00:00:00 2001 From: C <39905165+Tnutlyrehc@users.noreply.github.com> Date: Mon, 8 Oct 2018 21:14:03 +0200 Subject: [PATCH] Semaphores A short description about semaphore - Multithreading related knowledge --- Semaphpores | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Semaphpores diff --git a/Semaphpores b/Semaphpores new file mode 100644 index 0000000..7a59063 --- /dev/null +++ b/Semaphpores @@ -0,0 +1,4 @@ +Semaphores +Semaphores is a more advanced locking mechanism, which has an internal counter, rather than a lock flag, and it only blocks, +if more than a given number of threads have attempted to hold the semaphore. +Depending on how the semaphore is initialized, this allows multiple threads to acces the same code section the same time.