[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Context switching
- 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
> 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
--
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