All pastes #2069597 Raw Edit

Miscellany

public text v1 · immutable
#2069597 ·published 2011-05-26 19:40 UTC
rendered paste body
#include <stdio.h>
#include <pthread.h>

int *thr(void*i);
int main(void){
        int i = 0;
        pthread_t t0,t1;
        printf("echo me");
        pthread_create(&t0,NULL,thr,&i);
        i++;
        pthread_create(&t1,NULL,thr,&i);
        for(;;);
        return;
}

int *thr(void *i){
        for(;;){
        printf("\t %d",*(int*)i);
        }
}