Skip to content

aleroxac/goexpert-multithreading

Repository files navigation

goexpert-multithreading

goroutines-with-waitgroups

go run goroutines-with-waitgroups/main.go

race-condition-mutex

go run race-condition-mutex/main.go
ab -n 10000 -c 100 http://localhost:8080/mutex
curl http://localhost:8080/mutex

race-condition-atomic

go run race-condition-atomic/main.go
ab -n 10000 -c 100 http://localhost:8080/atomic
curl http://localhost:8080/atomic

range-with-channels

go run range-with-channels/main.go

range-with-waitgroups

go run range-with-waitgroups/main.go

channel-directions

go run channel-directions/main.go

loadbalancer

go run loadbalancer/main.go

select-with-channels

go run select-with-channels/main.go

channel-with-buffers

go run channel-with-buffers/main.go