performance of pthread_cond_broadcast when no one is waiting on condition
If I call pthread_cond_broadcast and no one is waiting on the condition,
will the pthread_cond_broadcast invoke a context switch and/or call to
kernel?
If not, can I rely on it being very fast (by fast I mean, just running a
small number of assmebly instruction in current process and then
returning)?
No comments:
Post a Comment