Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main() {
- ...
- pthread_t thread;
- i = pthread_create(&thread, NULL, &count, NULL);
- ...
- }
- void* count(void* x) {
- int j;
- printf("hello\n");
- for (j = 1; j <= 100; j++) {
- printf("%d\n", j);
- }
- pthread_exit(NULL);
- }
Add Comment
Please, Sign In to add comment