General question, sem_post does not result in preempt?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

does sem_post wake up another thread and preempt the current thread if
the other thread has a higher priority than the current one?

thread A : prio 10
thread B : prio 20

thread B : wait (sem)
thread A : running
thread A : post (sem)
thread B : now running?

I have written an example and it seems, that thread B will not preempt thread A.

Best regards

Friedrich Schick
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux