Created
December 9, 2014 19:52
-
-
Save ramntry/d9701105fbf8821109eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <omp.h> | |
int main(int argc, char *argv[]) | |
{ | |
char const quote[] = "The greatest enemy will hide in the last place you would ever look.\n"; | |
size_t const size = sizeof(quote); | |
#pragma omp parallel num_threads(2) | |
{ | |
for (size_t i = 0; i < size; ++i) { | |
putchar(quote[i]); | |
fflush(stdout); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The greatestT he greaenemy will htest einde in emy will hide in the last place you wtohe last plauce you would ever look.
�ld ever look.