runtime.LockOSThread()

 

    // Keep the fibbers in dedicated operating system
    // threads, so that this program tests coordination
    // between pthreads and not just goroutines.
    runtime.LockOSThread()

 

go1.18.1.src\misc\cgo\gmp\fib.go

 

posted @ 2022-05-10 09:30  papering  阅读(152)  评论(0编辑  收藏  举报