Keil™, An ARM® Company

Technical Support

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 02, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure