[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-rt
Subject: [rtl] pthread_wakeup_np semantics
From: Kenneth Jacker <khj () cs ! appstate ! edu>
Date: 2001-03-28 16:35:07
[Download RAW message or body]
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 majordomo@rtlinux.org OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic