Ledger Nano X - The secure hardware wallet
SHARE
TWEET

lab4

a guest Apr 8th, 2020 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <omp.h>
  2. #include <stdio.h>
  3. #include <Windows.h>
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     int rank, k;
  11.     cin >> k;
  12.  
  13. #pragma omp parallel num_threads(k) //private (rank)
  14.     {
  15.         rank = omp_get_thread_num();
  16.         Sleep(100);
  17.         printf("I am %d thread.\n", rank);
  18.     }
  19.     return 0;
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top