On Sun, Nov 1, 2020 at 9:15 PM Ting Yuan <yuant...@ict.ac.cn> wrote:

> I find it is tricky to debug a concurrency Go program in multi-core
> systems, so I wonder if there is a way to make the program run in
> deterministically. Can I assume a program with GOMAXPROCS(1) can be 
> deterministically
> executed ?
>

In addition to Harald's answer I'll point out you should be running your
unit tests with race detection enabled. If you don't have good test
coverage you may want to enable race detection in your binary. See
https://golang.org/doc/articles/race_detector.html

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD-khBVjC6Kg3NRi6DLYxHsX9wSX3u5NT_tgeNP-CK3bcA%40mail.gmail.com.

Reply via email to