scheduler

package
v1.1.0-beta.0...-abef9b1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUScheduler

type CPUScheduler struct{}

CPUScheduler is a cpu scheduler

func NewCPUScheduler

func NewCPUScheduler() *CPUScheduler

NewCPUScheduler is to create a new cpu scheduler

func (*CPUScheduler) Tune

Tune is to tune the goroutine pool

type Command

type Command int

Command is the command for scheduler

const (
	// Downclock is to reduce the number of concurrency.
	Downclock Command = iota
	// Hold is to hold the number of concurrency.
	Hold
	// Overclock is to increase the number of concurrency.
	Overclock
)

type Scheduler

type Scheduler interface {
	Tune(component util.Component, p util.GoroutinePool) Command
}

Scheduler is a scheduler interface

Jump to

Keyboard shortcuts

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