Keil Logo

RTX51: HOW QUICKLY ARE INTERRUPT TASKS EXECUTED?


Information in this article applies to:

  • RTX51 Version 5.10b

QUESTION

I have created a task that I attach to an interrupt as shown below:

void int0 (void) _task_ ISR_TASK
{
static unsigned int i;

if (os_attach_interrupt (0))
  {
  os_delete_task (os_running_task_id ());
  }

while (1)
  {
  os_wait (K_INT, 0xFF, NULL);
  i++;
  }
}

When the interrupt for this task occurs, does RTX51 execute the i++ code immediately or does it wait for the next RTX51 timer tick interrupt to switch to this interrup task?

ANSWER

RTX51 switches to this task immediately. It does not wait for the next timer tick interrupt.

Last Reviewed: Thursday, December 2, 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.