Subj : Re: nptl and signals To : comp.programming.threads From : Joe Seigh Date : Wed Jul 27 2005 08:51 am divijbhatt@gmail.com wrote: > Hi, > Dear this is what I want to do > [snip] > > I run the program for a particular time and see the value of counters > counters that must be incremnted.For e.g if programe is run for 12 > seconds then tha value of counter for each 1,2,3 thread must me 12,6,4 > respectively. > Loops with pthread_cond_timedwait(). Or just sleep() or nanosleep() if you want to assume the counters can be read atomically or you're reading them after pthread_join has been done on the threads. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .