find out how value_compare(), it will compare the values that way you will know which key comes first
quixqx
Posts
-
Sorting algorithm -
pthread in c++ (LINUX)thanx, I do pthread_join() call for all my threads but the sleeping ones do not get there. From the sample file, I have to create about five thread, only two are required to delay. The delayed threads do not get to the pthread_join() call but the other three get there. Seems the programs continues running as if there are no sleeping threads.
-
pthread in c++ (LINUX)Hi I wrote a code that has multiple threads, each thread has to run independent of another and complete at different times. I tried using the sleep() function to delay execution for some seconds but the program terminates while threads are still sleeping. I also tried using usleep() function, its works fine with small parameters but behave the same as sleep() with large parameters. Is there anyway that I can delay program termination until my threads are awake and have completed there task? OR Is there a better way of delaying the threads other than using sleep() and usleep()? Thanx