The Little Book of Semaphores



Download free course The Little Book of Semaphores, pdf file on 291 pages by Allen Downey.
The Little Book of Semaphores is a free textbook that introduces the principles of synchronization for concurrent programming.

In most computer science curricula, synchronization is a module in an Operating Systems class. OS textbooks present a standard set of problems with a standard set of solutions, but most students don't get a good understanding of the material or the ability to solve similar problems.

The approach of this book is to identify patterns that are useful for a variety of synchronization problems and then show how they can be assembled into solutions. After each problem, the book offers a hint before showing a solution, giving students a better chance of discovering solutions on their own.

The book covers the classical problems, including "Readers-writers," "Producer-consumer", and "Dining Philosophers." In addition, it collects a number of not-so-classical problems, some written by the author and some by other teachers and textbook writers. Readers are invited to create and submit new problems.

Table of contents

  • Introduction
  • Semaphores
  • Basic synchronization patterns
  • Classical synchronization problems
  • Less classical synchronization problems
  • Not-so-classical problems
  • Not remotely classical problems
  • Synchronization in Python
  • Synchronization in C
  • Cleaning up Python threads
  • Cleaning up POSIX threads
Pages : 291
Size : 1.2 MB
File type : PDF
Downloads: 50
Created: 2022-02-03
License: CC BY-NC-SA
Author(s): Allen Downey
The Little Book of Semaphores

Others Semaphores Tutorials

The Little Book of Semaphores

Others related eBooks about The Little Book of Semaphores

Wireless Hacking tutorial

Download free PDF tutorial about Wireless Hacking and Technic of protection, training document under 70 pages intended to beginners by Edri Guy....

Configuring Microsoft SharePoint Hybrid Capabilities

Download free course Configuring Microsoft SharePoint Hybrid Capabilities, pdf file on 192 pages by Jeremy Taylor, Neil Hodgkinson, Manas Biswas....

97 Things Every Software Architect Should Know

Download free course 97 Things Every Software Architect Should Know, pdf file on 118 pages by O'Reilly Media....

Discovering the STM32 Microcontroller

This book is intended as a hands-on manual for learning how to design systems using the STM32 F1 family of micro-controllers. It was written to support a junior-level computer science course at Indiana University. ...

XSLT: XML Transformation Tutorial in PDF

Download free XSLT and XML Transformation Tutorial in PDF, free training document on 42 pages by Dongwon Lee....

The Basics of User Experience Design

If you're looking to gain an introduction into the world of user experience (UX) design - ..., download free User Experience Design tutorial in PDF (73 pages) created by Mads Soegaard ....

Logical Reasoning

The goal of this book is to improve your logical-reasoning skills. Your logical-reasoning skills are a complex weave of abilities that help you get someone's point, generate reasons for your own point, evaluate the reasons given by others, decide what or what not to do, decide what information to ...

Cryptography and Network security

Download Cryptography and network security PDF tutorial by Chandraskhar Rao intended to Bachelor of Technology in Computer Science and Engineering....

Managing Projects with GNU Make

Download free course Managing Projects with GNU Make, pdf file on 272 pages by Robert Mecklenburg....

Azure Serverless Succinctly

Download free course Azure Serverless Succinctly, pdf file on 92 pages by by Sander Rossel....