In chapter 5 (“Less classical problems”), the “The Little Book of Semaphores”, starts by presenting the “dining saves problem”, introduced by Gregory Andrews in the book “Concurrent Programming: Principles and Practice.”
A tribe of...
30 basic questions to measure your Golang knowledge. Answers and .go files you can find on GitHub page.
Don’t hesitate to create a Pull Request in case of some found errors, typos.
The “The Little Book of Semaphores”, introduces the “cigarette smokers problem”. The problem was originally presented by Suhas Patil in a technical MIT memo¹, as a problem that cannot be solved with semaphores. This is the original formulation:
Three smo...
go test -bench=. Go has a great option to write your benchmarks and run it together with go test with option -bench. To create a benchmark function you must do the following:
gomobile bind With gomobile we can generate language bindings that make it possible to call Go functions from Java. And it’s awesome. Now you can write Android applications in Go (unfortunately without UI features and with pure SDK coverage, but I hope it will grow up from...
Ever since starting the series, I’ve been looking forward to this particular post. The Wikipedia entry describes the problem as follows:
Five silent philosophers sit at a round table with bowls of spaghetti. Forks are placed between each pair of adjacent philosophers.
Each...
Clients in Go There are official SDK libraries for PHP, Java and Python, but our service is written in GO, and in this case SDK search mostly fails.
I am a backend engineer with a passion for APIs, Web, Cloud, Microservices, DevOps, Kubernetes etc.
Let me introduce myself I started my blogging with Russian content at plutov.
After a weeks-long hiatus around the end of last year, I’m back to the regular once-a-week schedule. The next stop in the “classical problems” chapter of “The Little Book of Semaphores” is called the “readers-writers” problem.
The book de...