ARM Technical Support Knowledge Articles

TASKS 0 RUNS BUT OTHER TASKS DON'T

Applies to: RTX51 Tiny Real-time Kernel

Answer


Information in this article applies to:


QUESTION

I have created an RTX51 Tiny program that works fine with round-robin. However, with round-robin disabled, only task 0 executes. What's going on?

ANSWER

In order for RTX51 Tiny to switch tasks, each task in your program MUST call os_wait. For example:

while (1)
  {
  .
  .
  .
  os_wait (K_TMO, 5, 0);
  .
  .
  .
  }

If you have a task that does not call os_wait, when that task starts, it will run forever and never allow other tasks to start.

MORE INFORMATION

Article last edited on: 2005-07-17 10:56:57

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential