gcthreads

package
v0.0.0-...-54f7cab Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorAndReduceIdleOSThreads

func MonitorAndReduceIdleOSThreads(timeoutSec, rateLimit int)

The function monitors and reduces the number of idle OS threads in order to stay within a maximum limitation. This is a temporary solution to reduce the number of M idle OS threads. Open issues: - https://github.com/golang/go/issues/14592 - https://github.com/golang/go/issues/20395 possible pitfall: - https://github.com/golang/go/issues/14592#issuecomment-693186098

func MonitorWith

func MonitorWith(intervalSec int)

The function check and initializes environment variables with default values and then monitors and reduces idle OS threads based on those variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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