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: 60
Created: 2022-02-03
License: CC BY-NC-SA
Author(s): Allen Downey
The Little Book of Semaphores

Warning: Trying to access array offset on false in /home/tutovnfz/public_html/article.php on line 233

Others Semaphores Tutorials

The Little Book of Semaphores

Others related eBooks about The Little Book of Semaphores

Foundations of Software Science and Computation Structures

Download free course Foundations of Software Science and Computation Structures, pdf file on 586 pages by Christel Baier, Ugo Dal Lago....

Elixir Succinctly

Download free course Elixir Succinctly, pdf file on 84 pages by Emanuele DelBono....

Microservices vs Service-Oriented Architecture (SOA)

For anyone who has been developing web applications for 10 years or more, the recent rise of microservices sounds a lot like a development approach we already knew - service-oriented architecture (SOA). Both architectures are focused on breaking up large monolithic applications into collections of...

Made With Creative Commons

Download free course Made With Creative Commons, pdf file on 176 pages by Paul Stacey, Sarah Hinchliff Pearson....

Git Internals

Download free course Git Internals, pdf file on 121 pages by Scott Chacon....

Algorithms

Download free course Algorithms, pdf file on 472 pages by by Jeff Erickson....

StatLect - Lectures on Probability Theory and Mathematical Statistics

This is a collection of lectures on probability theory and mathematical statistics written by Marco Taboga, a professional financial economist with a passion for mathematics. It is offered as a free service to the mathematical community and provides an accessible introduction to topics that are no...

Functional Programming in OCaml

This book is about making you a better programmer. It gives you the opportunity to now learn a new language from scratch and reflect along the way about the difference between programming and programming in a language....

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. ...

Foundations of Software Science and Computation Structures

Download free course Foundations of Software Science and Computation Structures, pdf file on 556 pages by Miko?aj Boja?czyk, Alex Simpson....