1 /* Busy loop demonstrates the preemptive capabilites of MMURTL.
\r
2 It doesn't go through the kernel and never sleeps. It is
\r
3 a task that is ALWAYS ready to run.
\r
5 It runs at the default priority of 25, and rest assured,
\r
6 other higher priority tasks will receive messages and be
\r
9 If you run it, you will have to use the CTRL-ALT-DELETE keys
\r
11 To build, use MakeIt.bat, or use CM32 or DASM separately:
\r
17 #include "\OSSource\Mtimer.h"
\r
18 #include "\OSSource\MJob.h"
\r
25 SetJobName("BusyLoop", 8);
\r
26 Sleep(100); /* A small delay before we start eating CPU time */
\r
29 GetTimerTick(&tick);
\r
30 printf("%d \r\n", tick);
\r