You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Synchronization example. This is prepared for my lecture on Operating Systems, in the University of Tsukuba.You can install the Go programming language system from:https://golang.orgYou can obtain a lot of information of Go including Japanese tutorial, by retieving "golang" in some search engines.producerConsumer.go requires a library, github.com/abiosoft/semaphore .To install it, do the following:% go get github.com/abiosoft/semaphoreThen, just do the following:% go run producerConsumer.goSome error/warning could be printed. This is because the dining philosophers program is incomplete; "monitor" is not perfectly emulated.