![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| child process state | smreddy | UNIX for Dummies Questions & Answers | 8 | 12-24-2007 12:51 AM |
| state mach{ne... | parasa | High Level Programming | 2 | 10-20-2005 06:52 AM |
| Display Mirror State AIX | fenomen | UNIX for Dummies Questions & Answers | 2 | 07-08-2003 12:21 PM |
| Function in a blocked state. | vjsony | High Level Programming | 2 | 08-08-2002 02:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Think of scheduling like this:
There is one copy of the kernel. When a process is the current one, the kernel "attaches" itself (called a context switch) to the process memory. So when the kernel runs a system call on behalf of the process, it is "attached", and runs in the context of the process. It's not two separate entities running. Process states (in UNIX) are: R - runnable which means the process has done a context switch and has the kernel. S - sleeping which means the process is waiting on I/O completion (blocked), a pipe, memory, etc. T - process has been stopped - sent a SIGSTOP usually with ctrl/z Z - zombie - a process that has a process image in memory but no context, ie., not swappable. You can see this in the ps output. If you are not on Linux an have SVR4 flavor of ps, then you will see another "state" O - means the process is the one that currenlty has the cpu. What you ask has to do with system calls like read which block. I don't know what you meant by process state, since I/O blocked=one of the sleep categories |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|