<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>Context switching</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi all,</FONT>
</P>
<P><FONT SIZE=2>I have a question about context switching. I'm looking through the code</FONT>
<BR><FONT SIZE=2>and see that a context switch may be attempted in rtems_clock_tick if</FONT>
<BR><FONT SIZE=2>dispatching is enabled. But rtems_clock_tick is called from inside an</FONT>
<BR><FONT SIZE=2>interrupt handler. Thus, _Thread_Dispatch_disable_level is always greater</FONT>
<BR><FONT SIZE=2>than zero, and the context switch is never done.</FONT>
</P>
<P><FONT SIZE=2>Did I miss something? I'm trying to use timeslicing, 100 ticks per slice,</FONT>
<BR><FONT SIZE=2>but it doesn't seem to work.</FONT>
</P>
<P><FONT SIZE=2>Thanks in advance for any help.</FONT>
</P>
<P><FONT SIZE=2>--jc</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>jimen@adtech-inc.com Adtech, Inc. (808) 734-3300</FONT>
</P>
</BODY>
</HTML>