Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LockOSThread (0.06 sec)

  1. misc/cgo/gmp/fib.go

    )
    
    func fibber(c chan *big.Int, out chan string, n int64) {
    	// Keep the fibbers in dedicated operating system
    	// threads, so that this program tests coordination
    	// between pthreads and not just goroutines.
    	runtime.LockOSThread()
    
    	i := big.NewInt(n)
    	if n == 0 {
    		c <- i
    	}
    	for {
    		j := <-c
    		out <- j.String()
    		i.Add(i, j)
    		c <- i
    	}
    }
    
    func main() {
    	c := make(chan *big.Int)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 919 bytes
    - Viewed (0)
  2. api/go1.txt

    pkg runtime, func GOMAXPROCS(int) int
    pkg runtime, func GOROOT() string
    pkg runtime, func Goexit()
    pkg runtime, func GoroutineProfile([]StackRecord) (int, bool)
    pkg runtime, func Gosched()
    pkg runtime, func LockOSThread()
    pkg runtime, func MemProfile([]MemProfileRecord, bool) (int, bool)
    pkg runtime, func NumCPU() int
    pkg runtime, func NumCgoCall() int64
    pkg runtime, func NumGoroutine() int
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top