oscarcosta / readers-writers

Readers-Writers problem in Go and Java using Semaphore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Readers-Writers Problem

Two different solutions to solve the Readers-Writers Problem from The Little Book of Semaphores

Both solutions are implemented in a similar way in different languages (Java and Go). In this implementation a Resource allows the writers write and the readers read. To do this, the Resource is using Mutexes and a Lightswitch component to guarantee the mutual exclusion on the resource as described in the book.

  • readersWritersGo is the Go implementation

  • readersWritersJava is the Java implementation

About

Readers-Writers problem in Go and Java using Semaphore


Languages

Language:Go 51.9%Language:Java 48.1%