|
|
|
|
|
by vbernat
3310 days ago
|
|
In Linux, many properties are task-related and therefore the API is also task-related. Namespaces are not the only problem. See for example https://github.com/golang/go/issues/1435. The problem is Go runtime does not provide a way to exclusively lock a system thread from existing or future routines. Most other languages would work just fine (C or Python for example). |
|
runtime.LockOSThread() does exactly that [1].
[1] https://golang.org/pkg/runtime/#LockOSThread