I get the same result without the std::cout, 6s when I use a single thread (trd1), 14s when I use both threads (trd1 + trd2). Just tried smth similar with a C# program, it's even worse there, 3s for one and 15s for two threads.
↧