Hello again, I missed a call to "pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED)". Best regards, Friedrich Schick > 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