Created
August 1, 2019 13:59
-
-
Save 1f0/514084db05ab43914ded37b0eacea2eb 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 <pthread.h> | |
void *busy(void *ptr) { | |
puts("hello"); | |
return NULL; | |
} | |
int main() { | |
pthread_t id; | |
pthread_create(&id, NULL, busy, "hi"); | |
while (1) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment