LeastSeizedComparator

The number of times the resource was seized is used to determine the ordering. The less the number the smaller. If the number of times seized is equal, then the resource with the earliest time exiting the busy state is considered smaller. That is the one furthest back in time that the busy state was exited.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun compare(r1: Resource, r2: Resource): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard