The Wayback Machine - https://web.archive.org/web/20201123195201/https://github.com/topics/semaphores
Skip to content
#

semaphores

Here are 154 public repositories matching this topic...

martinspedro
martinspedro commented Jan 12, 2018

Problem

Individual notes may have footnotes. Those footnotes are numbered in accordance to the file. When the individual topic notes are merged, they keep (as supposed) the footnote number they had.

This causes

  • pandoc outputs a warning on duplicated footnotes
  • the footnotes in the published are incorrect

![image](https://user-images.githubusercontent.com/10232078/34893495-5bee41c2-

5.8 The roller coaster problem This problem is from Andrews’s Concurrent Programming [1], but he attributes it to J. S. Herman’s Master’s thesis. Suppose there are n passenger threads and a car thread. The passengers repeatedly wait to take rides in the car, which can hold C passengers, where C < n. The car can go around the tracks only when it is full. Here are some additional details: • Passengers should invoke board and unboard. • The car should invoke load, run and unload. • Passengers cannot board until the car has invoked load • The car cannot depart until C passengers have boarded. • Passengers cannot unboard until the car has invoked unload. Puzzle: Write code for the passengers and car that enforces these constraints.
  • Updated Feb 25, 2018
  • Python

Improve this page

Add a description, image, and links to the semaphores topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the semaphores topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.