[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Date: Wed, 01 Mar 2000 22:01:15 -0600
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: Context switching
Is the task both preemptible and timesliced? Both must be enabled
for timeslicing to work.
FYI dispatching is done at the end of the outermost interrupt.
> "Jimen.Ching" wrote:
> Hi all,
> I have a question about context switching. I'm looking through the
> 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
> than zero, and the context switch is never done.
> Did I miss something? I'm trying to use timeslicing, 100 ticks per
> but it doesn't seem to work.
> Thanks in advance for any help.
> jimen at adtech-inc.com Adtech, Inc. (808) 734-3300
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985