Keil Logo

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

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);

Last Reviewed: Monday, June 7, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.