3 ms·
Go actually does give you access to OS threads in the runtime package in the sense that you can easily reserve a thread for the current goroutine via http://gol
by TheBenjaneer 12y ago
Go actually does give you access to OS threads in the runtime package in the sense that you can easily reserve a thread for the current goroutine via http://golang.org/pkg/runtime/#LockOSThread http://golang.org/pkg/runtime/#LockOSThread and similarly can give it back up to the scheduler with runtime.UnlockOSThread()