RE: Bug 71331 - mlock yields processor to lower priority process

From: Mike Galbraith
Date: Thu Mar 27 2014 - 01:35:46 EST


On Thu, 2014-03-27 at 04:20 +0000, jimmie.davis@xxxxxxxxxx wrote:


> The example code submitted into bugzilla (chase back on the thread a
> bit, there is a reference) shows the problem.
>
> Two threads, TaskA (high priority) and TaskB (low priority). Assigned
> to the same processor, explicitly for the guarantee that only one of
> them can execute at a time.

Your priority based serialization guarantee does not exist. Tasks can
be and are put to sleep. When that happens, a lower priority runnable
task will run. Whether you like that fact or not, it remains a fact.

If you don't want your lower priority task to run, why do you wake it?.

-Mike
>


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