Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setMaxThreads (0.11 sec)

  1. src/runtime/debug/garbage.go

    // or are locked to other goroutines due to use of runtime.LockOSThread.
    //
    // SetMaxThreads is useful mainly for limiting the damage done by
    // programs that create an unbounded number of threads. The idea is
    // to take down the program before it takes down the operating system.
    func SetMaxThreads(threads int) int {
    	return setMaxThreads(threads)
    }
    
    // SetPanicOnFault controls the runtime's behavior when a program faults
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top