We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a6a6c3 commit a4d113bCopy full SHA for a4d113b
src/tests/thread_pool.cpp
@@ -133,7 +133,9 @@ int main (int argc, char* argv[])
133
cout << "Computer " << NetworkData::getCurrentHostName ( ) << " has "
134
<< nbProcs << " processors." << endl;
135
136
- ThreadPool::initialize (nbProcs / 3);
+const size_t nbWorkers = nbProcs >= 48 ? 16 : nbProcs / 3;
137
+ThreadPool::initialize (nbWorkers / 3);
138
+// ThreadPool::initialize (nbProcs / 3);
139
srand (time (NULL));
140
141
size_t i = 0;
0 commit comments