Thread (6 messages) flat view 6 messages, 2 authors, 2012-04-18

Hung Task Timeout

From: mani <hidden>
Date: 2012-04-17 04:26:00

Hi All,

How kernel scheduler treats task's TASK_UNINTERRUPTIBLE &
TASK_INTERREPTIBLE states ?

Actually in my case i have created a kernel thread and it is waiting on an
event as per below :-

wait_event(queue, flag);

in the above condition it gives me hung task timeout dump as it puts the
task in TASK_UNINTERRUPTIBLE state
whereas if i change the function call to

wait_event_interruptible(queue, flag);
It works fine as the task is in TASK_INTERREPTIBLE state

I have checked in the kernel [kernel/hung_task.c ] check_hung_task()
It says that

    /*
     * Ok, the task did not get scheduled for more than 2 minutes,
     * complain:
     */
So is that means that TASK_UNINTERRUPTIBLE will not get schedule by the
scheduler ?
Can anyone give the detail information what's going on in backyard ?


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120417/431df745/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help