Linked Questions
17 questions linked to/from What is an uninterruptible process?
1 vote
0 answers
116 views
Why linux process with status 'D' can be killed ? [duplicate]
linux process with status 'D' mean TASK_UNINTERRUPTIBLE, so I write a programer to test it on Ubuntu 16.04 My code: #include <unistd.h> #include <iostream> using namespace std; int ...
59 votes
6 answers
69k views
How to stop 'uninterruptible' process on Linux?
I have a VirtualBox process hanging around which I tried to kill (KILL/ABORT) but without success. The parent pid is 1 (init). top shows the process as D which is documented as "uninterruptible sleep"...
38 votes
2 answers
87k views
Process permanently stuck on D state [closed]
I have an issue with some processes stuck in a D state on Ubuntu 10.04.3 LTS. They have been in this state since Nov the 5th (today being December 6th). I understand these are uninterruptible sleep ...
4 votes
3 answers
5k views
Why isn't write(2) returning EINTR?
I've been reading about EINTR on write(2) etc, and trying to determine whether I need to check for it in my program. As a sanity check, I tried to write a program that would run into it. The program ...
7 votes
1 answer
9k views
Process is in interruptible sleep - how to find out what it is waiting for
I have an daemon running on Debain on Arm. Sometimes this daemon hangs/is not responding anymore. When looking at the process with "ps ax" the stat column is "Dl" which means "uninterruptible sleep (...
5 votes
1 answer
3k views
What is the difference between TASK_KILLABLE and TASK_INTERRUPTIBLE?
It seems like TASK_KILLABLE should be a subset of TASK_INTERRUPTIBLE, since killing a task is one way of, um, interrupting it; however, according to sched.h here and here it looks like TASK_KILLABLE ...
5 votes
2 answers
2k views
Does the linux system call read(fd, buf, count) return less than count when fd is a regular file?
When we call read(fd, buf, count) on Linux, can the return value of the system (function) call be less than count other than the scenario where there were fewer bytes to the end-of-file? I looked it ...
1 vote
2 answers
5k views
Can I use pthread_join() to check for terminated thread?
I need to know if some thread already terminated (if it's not, I must wait for it). If I call pthread_join() on terminated thread, it always returns success in my version of glibc. But documentation ...
0 votes
2 answers
2k views
Can not kill process by kill -9?
I try to kill process by using command "kill -9 pid", but can not succeed. Anybody know how could I kill such process and why I can't kill it ?
0 votes
1 answer
2k views
linux process waiting for I/O, its status is S+ not D?
I expected that a linux process waiting for I/O resource should be in "D" state, so I tested: $cat testD.cpp #include<assert.h> #include<stdlib.h> #include<stdio.h> #include<...
5 votes
1 answer
2k views
cifs mount cause processes to enter uninterruptible sleep
Given CentOS 6.3 box (2.6.32). I compile sources in the Linux. The source tree is located on Windows 7 box, which is CIFS mounted. Everything was ok, till recently compilation time started to grow ...
1 vote
1 answer
1k views
stat() system call is being blocked
stat() system call is taking long time when I am trying to do a stat on a file which is corrupted. Magic number is corrupted. I have a print after this call in my source code which is getting printed ...
0 votes
1 answer
787 views
Can multi-threading improve the performance definitely
I'm using C++11 to develop a project. In some function, I got some parallel tasks as below: void func() { auto res1 = task1(); auto res2 = task2(); auto res3 = task3(); ... std::...
2 votes
1 answer
345 views
exec family function in C [closed]
As we know that exec family function calls eventually calls execve() which is a system call and remaining are library functions. So, typically, whatever implications applies on execve() are true for ...
1 vote
0 answers
289 views
Can't kill macOS python process
I'm having troubles using a Python API which is causing un-killable processses. I use one process per API execution. This works well if the API is able to work correctly. However, when the API fails ...