You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
312 B
Bash
11 lines
312 B
Bash
# Running the program shows that we executed about
|
|
# 90,000 total operations against our `mutex`-synchronized
|
|
# `state`.
|
|
$ go run mutexes.go
|
|
readOps: 83285
|
|
writeOps: 8320
|
|
state: map[1:97 4:53 0:33 2:15 3:2]
|
|
|
|
# Next we'll look at implementing this same state
|
|
# management task using only goroutines and channels.
|