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

Running this test on my Linux desktop takes 9.9 GB of virtual memory (although very little is actually resident) and 42% of my CPU. So, it doesn't crash my computer, but this seems like it's way too much resource usage.


Forgot to add, for 2000 threads repeatedly doing some very short calculation (added it for fun) and sleeping 100ms in a loop: CPU consumption is around 2% (fluctuates between 1 and 2.6). RAM used 36MB. So do not know what is wrong with your system / or maybe whatever language/library being used.


Reserved stack space that can be adjusted




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

Search: