pthread_lock

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue Mar 5 00:32:45 EST 2013


On Tue, Mar 5, 2013 at 10:14 AM, ishare <june.tune.sea at gmail.com> wrote:
>
>
>  when pthread_unlock(mutex) is called , do other threads waiting for mutex be waked up immediately?
>  or be waked up at the next schedule?

next schedule. I think the waiting threads (processes) will moved from
the wait queue to the run queue from where they will be scheduled to
run.

HTH,
-mandeep

>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



More information about the Kernelnewbies mailing list