All pastes #921299 Raw Edit

Untitled

public text v1 · immutable
#921299 ·published 2008-02-27 22:52 UTC
rendered paste body
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/wait.h>

int main (int argc, char* argv[]){

void abcd(void);



     pthread_t th;
     pthread_attr_t ta;
     (void) pthread_attr_init(&ta);
     (void) pthread_attr_setdetachstate(&ta, PTHREAD_CREATE_DETACHED);


	pthread_create(&th, &ta, (void * (*)(void *))abcd, NULL);

};

void abcd(void){
while(1){
printf("heeelp");
sleep(1);
}
}