Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
millstone
on July 12, 2015
|
parent
|
context
|
favorite
| on:
Singleton Pattern in Go
Here's the mutex source:
https://golang.org/src/sync/mutex.go
. The fast path is just a CAS, which of course is going to be fast. But it's also important to know how it performs under contention.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: