Skip to content
Snippets Groups Projects
Commit 426e07c5 authored by Petr Zejdl's avatar Petr Zejdl
Browse files

Using 100 threads

parent e31f9feb
No related branches found
No related tags found
No related merge requests found
Pipeline #4706617 passed
...@@ -46,7 +46,7 @@ class MyTransformFunc : public tbb::filter { ...@@ -46,7 +46,7 @@ class MyTransformFunc : public tbb::filter {
// Lower numbers are delayed more than higher numbers - should force out of // Lower numbers are delayed more than higher numbers - should force out of
// order processing NOTE: It would be better to use barriers but this is // order processing NOTE: It would be better to use barriers but this is
// simpler and also works // simpler and also works
usleep(static_cast<unsigned int>((10 - (number % 10)) * 100000)); usleep(static_cast<unsigned int>( (100 - number) * 10000));
LOG(INFO) << number; LOG(INFO) << number;
return item; return item;
} }
...@@ -93,7 +93,7 @@ int main(int argc, char *argv[]) { ...@@ -93,7 +93,7 @@ int main(int argc, char *argv[]) {
(void)(argc); (void)(argc);
(void)(argv); (void)(argv);
int threads = 10; int threads = 100;
int tokens = 100; int tokens = 100;
int maxN = 100; int maxN = 100;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment