I understand that in Go, runtime.LockOSThread()
will bind a goroutine to one OS thread and not allow other goroutines to execute in that thread.
Is this also true for child goroutines?
For example:
runtime.LockOSThread()
go func() {
go func() {
// Do something
}()
// Do something
}()
Do both of these goroutines execute in a single and exclusive OS thread or only the first one?