| |||||
Technical Support Support Resources
Product Information | RTX51: HOW QUICKLY ARE INTERRUPT TASKS EXECUTED?Information in this article applies to:
QUESTIONI 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? ANSWERRTX51 switches to this task immediately. It does not wait for the next timer tick interrupt. Last Reviewed: Thursday, December 02, 2004 | ||||
| |||||