Browsing index pages (2 articles)
↧
Why does a single threaded operationg takes 3 times longer than no threaded?
I'm testing concurrency in Java, my objective is to determine if having multiple threads is actually beneficial, however, I'm getting results that don't add up. I'm trying to optimize a factorial...
View ArticleAnswer by that other guy for Why does a single threaded operationg takes 3...
This happens because your "no thread" (only main thread) version uses all compile time constants which are easier to optimize. If you make sure the compiler won't know ahead of time what the values...
View Article
Browsing index pages (2 articles)