docs
[mirrors/Programs.git] / c / pthread.c
CommitLineData
acf4c6bd
H
1#include <stdio.h>
2#include <pthread.h>
3
4void *go(void *args) {
5 while(1) {
6 puts("lol!");
7 }
8}
9
10int main() {
11 pthread_t t;
12 //pthread_create(&t, NULL, go, NULL);
13 pthread_create(&t, NULL, puts, "hello!");
14 sleep(1);
15}
This page took 0.191738 seconds and 4 git commands to generate.