Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Maybe GOMAXPROCS exists so that the number of hw threads that might be spawn by the go application can be controlled in a more system-agnostic way. Without such env varianle, on Windows (for example) you can control this with CPU affinity (and possibly other better ways), but not sure about Linux/OSX/etc. So this kind of deals with it upfront.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: