Can someone explain to me the difference between a process that is in a sleeping state versus a running state? I thought a process was sleeping if it was waiting for something or if the cpu was running another process. For instance I am running mplayer from the cli to listen to a music stream:
Quote:
matt@foo:~$mplayer -playlist groovesalad130.pls
|
Now if I check on the state of mplayer I see that it is sleeping:
Quote:
matt@amd:~$ps -el | grep mplayer
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 1000 7187 3932 1 80 0 - 63135 hrtime pts/1 00:05:07 mplayer
1 S 1000 7188 7187 0 80 0 - 61783 hrtime pts/1 00:00:12 mplayer
0 S 1000 8376 8289 1 80 0 - 63134 hrtime pts/6 00:00:01 mplayer
1 S 1000 8377 8376 0 80 0 - 61783 hrtime pts/6 00:00:00 mplayer
|
I don't understand how the state can always be sleeping if I am listening to a music stream with mplayer.