Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: counter with lock

Take the example we saw earlier where we counted in several goroutines and apply the Mutex locks to ensure it does not miss a count.