Simple mutex implementation interview question
Implement a simple spinlock based on Go sync/atomic primatives.
var m Mutex
m.Lock()
m.Unlock()
- Read-write Mutex
- WaitGroup
- Measure performance against sync.Mutex and explain differences.
Simple mutex implementation interview question
Simple mutex implementation interview question
Implement a simple spinlock based on Go sync/atomic primatives.
var m Mutex
m.Lock()
m.Unlock()
Simple mutex implementation interview question