Guest User

Untitled

a guest
Jan 20th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. // main thread, do something
  2. for (int i = 0; i < thread_n; i++) {
  3. // spawn a thread, let it do some work
  4. }
  5. // wait for each of the previous threads to finish, collect results
Add Comment
Please, Sign In to add comment