Skip to content

kzhk/sync_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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.org

You 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/semaphore

Then, just do the following:

% go run producerConsumer.go

Some error/warning could be printed.  This is because the dining philosophers program is incomplete; "monitor" is not perfectly emulated.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages