[LITMUS^RT] How to handle the blocked task
Björn Brandenburg
bbb at mpi-sws.org
Mon Oct 3 13:00:02 CEST 2016
> On 02 Oct 2016, at 18:44, shijunjie92 <shijunjie92 at gmail.com> wrote:
>
> I have noticed that, in the pfp_schedule(), only if the prev task is !block, it can be requeued.
> So what happen if the prev_task is blocked? which queue it blongs to?
>
None. It suspends, so the scheduler doesn’t keep track of it any longer. A blocked task is most likely on some wait queue, but not necessarily so (see SIGSTOP). But that is not the scheduler’s concern.
- Björn
More information about the litmus-dev
mailing list