|
|
|
|
|
by scott_s
4723 days ago
|
|
Are you calling a system sleep, or a sleep implemented as part of Go's runtime? If it's a system sleep, and you're on Linux, sched_yield (http://man7.org/linux/man-pages/man2/sched_yield.2.html) may be more appropriate. But, I acknowledge that is only a slightly-better kludge. It's still not ideal. edit: georgemcbay's runtime.Gosched() appears to be the "right" kludge, but I'm leaving this up just in case others weren't aware of the system call. |
|