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.
oabrivard 17c692cfb3 Removed exe from git repo 2 years ago
0-limit-crawler Solved 0-limit-crawler 2 years ago
1-producer-consumer Solved 1-producer-consumer 2 years ago
2-race-in-cache Solved 2-race-in-cache 2 years ago
3-limit-service-time Solved 3-limit-service-time 2 years ago
4-graceful-sigint Removed exe from git repo 2 years ago
5-session-cleaner Corrected an unwanted mutex copy in 5-session-cleaner 2 years ago
.gitignore Added exercises source code 2 years ago
LICENSE Added exercises source code 2 years ago
README.md Added exercises source code 2 years ago
go.mod Added exercises source code 2 years ago

README.md

Go Concurrency Exercises Build Status Go Report Card

Exercises for Golang's concurrency patterns.

https://github.com/loong/go-concurrency-exercises

Why

The Go community has plenty resources to read about go's concurrency model and how to use it effectively. But who actually wants to read all this!? This repo tries to teach concurrency patterns by following the 'learning by doing' approach.

Image of excited gopher

How to take this challenge

  1. Only edit main.go to solve the problem. Do not touch any of the other files.
  2. If you find a *_test.go file, you can test the correctness of your solution with go test
  3. If you get stuck, join us on Discord or Slack! Surely there are people who are happy to give you some code reviews (if not, find me via @loong ;) )

Overview

# Name of the Challenge + URL
0 Limit your Crawler
1 Producer-Consumer
2 Race Condition in Caching Cache
3 Limit Service Time for Free-tier Users
4 Graceful SIGINT Killing
5 Clean Inactive Sessions to Prevent Memory Overflow

License

 DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
                    Version 2, December 2004 

 Copyleft from 2017 Long Hoang

 Everyone is permitted to copy and distribute verbatim or modified 
 copies of this license document, and changing it is allowed as long 
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 

  0. You just DO WHAT THE FUCK YOU WANT TO.