Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Makefile
README.md
main.go

README.md

Concurrency Series: Internet Cafe

Watch The Screencast

Go in 5 Minutes, episode 15.

This screencast overviews the "Internet Cafe" problem on Trivial Concurrency Exercises for the Confused Newbie Gopher, and provides a solution.

We're finishing up the concurrency series - see https://github.com/arschles/go-in-5-minutes/issues/14 for what we've covered.

Screencast video: https://www.goin5minutes.com/screencast/episode_15_internet_cafe/

Other Notes

Extended Screencast

The code in this screencast has a bug - it may exit before all of the tourists are done using their computer. The extended screencast that accompanies this one shows how to fix it.

Get the extended screencast at https://gum.co/gifm-x-15.

Outline

  1. This problem
  • Broadcasting to many goroutines
  • A new way to use select
  1. Example code
You can’t perform that action at this time.