Blocked process and preempt


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Blocked process and preempt
# 1  
Old 08-01-2012
Blocked process and preempt

Hello Everyone,

There is a column kthr:b in vmstat. How a process become blocked?
If the process calls system call pread and sleeps inside it, is the process blocked in that moment?
How a process sleeping because it has no work at all (as Notepad when we are not using it) differs from a process which is sleeping because is waiting for I/O request?

Thanks

p.s.
I have written "and preempt" in the subject because wanted to ask about it, but now please ignore this part. I do not have an option to modify subject.

Last edited by sant; 08-01-2012 at 08:24 AM..
# 2  
Old 08-01-2012
I don't have that column in vmstat. What's your system?

Every system call, without exception, blocks the process or thread from executing until it completes. Even the ones that always return immediately, the process has to stop in the meantime. That's just how system calls work; the process or thread is suspended until the operation completes.

User input is I/O too, reading from a socket or device or perhaps making a system call which blocks... So the mechanism is the same.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 08-02-2012
Quote:
Originally Posted by Corona688
I don't have that column in vmstat.
The 2nd column (b).

So, if a process is in syscall, it will be blocked and present in the column b?
# 4  
Old 08-02-2012
Exactly.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Solaris

How to find blocked process in vmstat?

Hi, How to find which processes are blocked? b column in vmstat shows higher values some times(approximately 30 min) bash-3.2# vmstat 1 10 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr m1 m1 m1 m2 in sy cs us... (3 Replies)
Discussion started by: sureshsun
3 Replies

2. Shell Programming and Scripting

Parsing blocked text

I do have a flat text file that are divided into blocks. Each block is demimited by '='. I would like to parse certain numbers and letters. This is the format of the file I have. It has thousands of such blocks >A B 1, 100 TTTT 100 95 >C D 1, 95 GHJKL = >A B 1, 72 GHUJKLO 72 84 >C D... (3 Replies)
Discussion started by: Kanja
3 Replies

3. UNIX for Advanced & Expert Users

Date on which a user is blocked

I work on AIX 5.3 and need to know if is possible to know the date on which a user is blocked. Thank you. (1 Reply)
Discussion started by: cmr88
1 Replies

4. IP Networking

Blocked ports

I have installed a network camera in my home which i would like to watch when i am in my office.The problem is that the specific port that is used from my camera to pass video is blocked by my isp(as most ports for incoming connections). It is not possible to change that port from my camera... (3 Replies)
Discussion started by: link7722
3 Replies

5. Post Here to Contact Site Administrators and Moderators

IP Blocked

When I try to view these forums from work, I get a message that my IP has been blocked. Please advise as to how to fix this situation. My IP at work comes from the following class B network: 128.226.X.X (Binghamton University) Thanks. (1 Reply)
Discussion started by: debcav
1 Replies

6. IP Networking

BitTorrent port 6969 blocked... how to get around the blocked port

Due to the massive Upload speeds killing .... or overstressing our schools network...... my school has blocked port 6969 (the most common BitTorrent port). So I cant connect to the tracker anymore, in other words no more downloading from school :( Does anyone know how I can get around the ports... (1 Reply)
Discussion started by: PenguinDevil
1 Replies
Login or Register to Ask a Question