Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FizzBuzzMultiThread ¶
func FizzBuzzMultiThread(n int)
FizzBuzzMultiThread implements the fizzbuzz algorithm in 3 go-routines
Types ¶
type ChopStick ¶
ChopStick is s the chopstick needed for dining
func NewChopStick ¶
NewChopStick creates a new chopstick
type Philosopher ¶
type Philosopher struct {
// contains filtered or unexported fields
}
Philosopher is a person who can eat with a chopstick
func NewPhilosopher ¶
func NewPhilosopher(left, right *ChopStick, name string) *Philosopher
NewPhilosopher creates a new instance of a philosopher
Click to show internal directories.
Click to hide internal directories.