All pastes #213569 Raw Edit

Someone

public c v1 · immutable
#213569 ·published 2006-10-21 14:26 UTC
rendered paste body
#include <stdio.h>#include <pthread.h>void  * contar (void * pl){	int i;	char * pc;		pc=(char *)pl;		printf ("\nthread=%x ",pthread_self());	for (i=0; i<100; i++)		printf ("%c ",*pc);}int main(){	int i;	pthread_t tid;	char letra[]="AJTWIodnql1";	for (i=0; i<10; i++)		pthread_create(&tid, NULL, contar, (void *)&letra[i]);	for (i=0; i<10; i++)		pthread_join (tid, NULL);	return 0;}