package
module
Version:
v0.0.0-...-6b2c873
Opens a new window with list of versions in this module.
Published: Feb 15, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
dining implements the dining philosophers problem
described in C A R Hoare's 1978 paper.
Pass log entries to the Logger via the channel.
Lgger creates the log file and writes the entries passed to
via the channel.
Philosopher defines the life of a philosopher, enabled by
communication with Forks and the Room.
Room regulates the attendance of the philosophers.
type ForkReq struct {
Ack chan any
Action uint8
}
ForkReq describes a request from a philosopher to a fork.
type RoomReq struct {
Action uint8
}
RoomReq describes a request from a philosopher to the room.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.