Context switching

Jimen.Ching JChing at adtech-inc.com
Wed Mar 1 05:15:29 UTC 2000


Hi all,

I have a question about context switching.  I'm looking through the code
and see that a context switch may be attempted in rtems_clock_tick if
dispatching is enabled.  But rtems_clock_tick is called from inside an
interrupt handler.  Thus, _Thread_Dispatch_disable_level is always greater
than zero, and the context switch is never done.

Did I miss something?  I'm trying to use timeslicing, 100 ticks per slice,
but it doesn't seem to work.

Thanks in advance for any help.

--jc
--
jimen at adtech-inc.com     Adtech, Inc.    (808) 734-3300
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20000229/8d585ecc/attachment.html>


More information about the users mailing list