lkml.org 
[lkml]   [2003]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] O16int for interactivity


Con Kolivas wrote:

>>
>>A hardware timer interrupt happens at timeslice granularity. If the
>>interrupt occurs, but the timeslice is not expired, then NORMALLY, the
>>ISR would just return right back to the running task, but sometimes, it
>>might decided to end the timeslice early and run some other task.
>>
>>Right?
>
>
> No, the timeslice granularity is a hard cut off where a task gets rescheduled
> and put at the back of the queue again. If there is no other task of equal or
> better priority it will just start again.


Hmmm... I'm still having trouble making sense of this.

So, it seems that you're saying that all tasks, regardless of timeslice
length, are interrupted every 10ms (at 100hz). If another task exists
at a higher priority, then it gets run at that point. However, if there
is more than one task at a given priority level, then they will not
round-robin until the current task has used up all of its timeslice
(some integer multiple of 10ms).

Am I finally correct, or do I still have it wrong? :)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.106 / U:1.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site