banker

package module
v0.0.0-...-742eee0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: BSD-2-Clause Imports: 0 Imported by: 0

README

banker

An implementation of Dijkstra's banker's algorithm in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bankers

func Bankers(i int, request, available []int, allocation, need [][]int) (ok bool)

Check whether request can be granted to i by computing a safe

schedule.

func Safe

func Safe(available []int, allocation, need [][]int) (ok bool, schedule []int)

If the state is safe, a schedule that grants maximum resources

to all processes is returned. Otherwise, the result is false and
a partial schedule.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL