hmm.
when i was in this kind of class, i had to do program a thread simulation from scratch :-X
(side note: the exact point of this project of yours has me slightly at a loss, unless i'm missing something)
i know nothing about pthreads.h
but here's my advice for you on this particular problem: use GDB
figure out what line its seg faulting in and see if that helps you any.
__________________
This is what is hardest: to close the open hand because one loves.
Nietzsche
|