[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] priority
> Diagnostic printf-s show that the executing order is 1-3-2.
> This means, that priority of interrupt handler thread is not
> definitely higher than priority of the normal thread.
> When pthread_wakeup_np() reschedules threads, user_thread
> gets the control instead of it_handler.
I'm not a specialist, but inside userspace threads are not deterministic, that
means it could be 2-1-3 or 1-2-3 another time !! So you have to use mutex. The
priority (I have read the highest is up to 1Mio ????) has to do with the
scheduler behavior - which task have to schedule at first ??? But I'm not shure.
By Olaf