#include void *work2(void *foo) { while ((int)foo<5) { printf("got %d\n", (int) foo++); sleep(2); } return (void *)110; }