i have 10 threads 5 for girls and 5 for boys, i have to use pthread library.how can give priority?girls have higher priority?
i have 10 threads 5 for girls and 5 for boys, i have to use pthread library.how can give priority?girls have higher priority?
IIRC pthreads is a non-preemptive library. As such you can't not give one thread a higher priority then other threads.