Skip to content

Instantly share code, notes, and snippets.

@ramntry
Created December 9, 2014 19:52
Show Gist options
  • Save ramntry/d9701105fbf8821109eb to your computer and use it in GitHub Desktop.
Save ramntry/d9701105fbf8821109eb to your computer and use it in GitHub Desktop.
#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);
}
}
}
@ramntry
Copy link
Author

ramntry commented Dec 9, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment