Let Tlow and Thigh be two threads with priorities 3 and 7
respectively. Assume Tlow issues a pthread_wakeup_np(Thigh).

Will Thigh begin executing immediately?

The non-SMP code for pthread_wakeup_np() in rtl_sched.c is basically:

                pthread_kill(thread,RTL_SIGNAL_WAKEUP);
                rtl_reschedule_thread(thread);

But, rtl_reschedule_thread() just simplifies (for non-SMP) to:

                rtl_schedule()


It would seem that this would result in Thigh getting the CPU ...

Thanks for any clarifications!

  -Kenneth
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to