3 ms·
The only runtime hoop I've ever had to jump through was to invoke runtime.LockOSThread() inside a go-routine. In a lot of ways: go func() { runtime
by rcme 4y ago
The only runtime hoop I've ever had to jump through was to invoke runtime.LockOSThread() inside a go-routine. In a lot of ways:
go func() {
runtime.LockOSThread()
// ...
}()
Is simpler than creating a thread in other languages.
- int_19h 4y agoThe runtime jumps through those hoops for you as needed, mostly, but there are consequences to that wrt performance.