ARM Technical Support Knowledge Articles

HOW QUICKLY ARE INTERRUPT TASKS EXECUTED?

Applies to: RTX51 Real-time Kernel

Answer


Information in this article applies to:


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.

Article last edited on: 2004-12-02 03:52:11

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