Skip to content

Commit

Permalink
check multi core, not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Weilei Zeng committed Mar 27, 2020
1 parent 563b871 commit 32148f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion temp/async_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int main ()
//std::future<bool> fut2 = std::async (is_prime,87178291199);
std::future<int> fut3 = std::async (std::launch::async,get_prime,871782922);
std::future<int> fut4 = std::async (std::launch::async,get_prime,871782920);
int n = 20;
int n = 40;
std::future<int> fut[n];
for ( int i =0;i<n;i++){
fut[i] = std::async (std::launch::async,get_prime,871782918);
Expand Down
Binary file modified temp/async_test.out
Binary file not shown.

0 comments on commit 32148f1

Please sign in to comment.