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: 38
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

Embedded Firmware Solutions

Download free course Embedded Firmware Solutions, pdf file on 215 pages by Jiming Sun, Marc Jones, Stefan Reinauer, Vincent Zimmer....

Learning Vim

Download free course Learning Vim, pdf file on 157 pages by Stack Overflow Community....

What is the Text Encoding Initiative? How to add intelligent markup to digital resources

The Text Encoding Initiative (TEI) Guidelines have long been regarded as the de facto standard for the preparation of digital textual resources in the scholarly research community. For the beginner, they offer a daunting range of possibilities, reflecting the huge range of potential applications f...

Business Process Flow Mapping Succinctly

Download free course Business Process Flow Mapping Succinctly, pdf file on 73 pages by by Erica L. Quigley....

Skype Bots Succinctly

Download free course Skype Bots Succinctly, pdf file on 92 pages by Ed Freitas....

App Modernization on Azure Succinctly

Download free course App Modernization on Azure Succinctly, pdf file on 122 pages by by Lorenzo Barbieri....

Learning Regular Expressions

Download free course Learning Regular Expressions, pdf file on 94 pages by Stack Overflow Community....

Git Notes for Professionals

Download free course Git Notes for Professionals, pdf file on 194 pages by Stack Overflow Community....

Programming from the Ground Up: An Introduction to Programming using Linux Assembly Language

Programming from the Ground Up uses Linux assembly language to teach new programmers the most important concepts in programming. It takes you a step at a time through these concepts: * How the processor views memory * How the processor operates * How programs interact with the operating system * H...

Asterisk: The Future of Telephony, 2nd Edition

This bestselling book is now the standard guide to building phone systems with Asterisk, t..., download free Asterisk tutorial in PDF (604 pages) created by Jared Smith ....