Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface { // Value will return the total numbers of goods Value() int // Produce will produce numbers of goods Produce(goods int) // Consume will consume numbers of goods Consume(goods int) error }
Factory is an interface that can produce and consume "goods"
type LRUScheduler ¶
type LRUScheduler struct {
// contains filtered or unexported fields
}
LRUScheduler is a Least Recently Used scheduler.
Click to show internal directories.
Click to hide internal directories.