LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-16-2004, 09:49 AM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
Why does ps -A show several instances of the same application?


Code:
ps -A
Output:

.
.
.
.
.
687 ? 00:00:00 xterm
689 ttyp1 00:00:00 bash
1126 ttyp1 00:00:15 firefox-bin
1136 ttyp1 00:00:00 firefox-bin
1137 ttyp1 00:00:00 firefox-bin
1138 ttyp1 00:00:00 firefox-bin
1633 ttyp0 00:00:00 xmms
1634 ttyp0 00:00:00 xmms
1635 ttyp0 00:00:00 xmms
1636 ttyp0 00:00:00 xmms
1645 ttyp0 00:00:00 ps

I'm the only user with only one copy of firefox and one copy of xmms running. Why are there 4 instances of each application when I do a 'ps -A'? Are there 4 copies of each application running?

Thanks !
 
Old 04-19-2004, 10:52 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Programs happen to fork into multiple related processes that interoperate with eachother. Somewhat similar to threading. xmms for instance probably does mp3 reading and decoding it to the buffer in one process, feeding decoded wave to the soundcard in other and operating with the user through the X interface in the third, and so on.
 
Old 04-19-2004, 10:53 PM   #3
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
ps -fA shows also the parent process of processes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New instances of X? nagromo Linux - Software 2 04-16-2005 02:42 AM
why are there two instances of the kernel? denning Slackware 9 02-06-2005 11:19 AM
Two instances of Firefox? subnet_rx Linux - Software 3 07-17-2004 02:51 PM
9 httpd instances running!?? jlinden Linux - Newbie 2 09-17-2003 11:32 AM
2 instances of same printer fredws Mandriva 4 08-26-2003 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration