ARM Technical Support Knowledge Articles

WHAT DOES OS_WAIT(K_TMO, 0, 0) DO?

Applies to: RTX51 Real-time Kernel

Answer

QUESTION

In my RTX51 program, what happens when I execute the following code?

os_wait (K_TMO, 0, 0);

Does the kernel switch tasks or does it return immediately?

ANSWER

In RTX51, the following function call...

os_wait (K_TMO, 0, 0);

does nothing. It returns without transferring control to any other task. To transfer to another waiting task, you must use the following:

os_wait (K_TMO, 1, 0);

Article last edited on: 2004-06-07 11:05:51

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