LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-23-2004, 01:36 PM   #1
GodSendDeath
Member
 
Registered: Mar 2004
Posts: 71

Rep: Reputation: 15
Xmms and Xine multiple threads!?!??


Everyone, I am using Slack 10 kernel 2.6.7. When I play a video in xine or a song in xmms, the command "ps aux" shows multiple instances of each For example, Xmms shows 4 threads and xine shows like 10 threads!?!? Is this normal? Does anyone elses systems show similar results?


-GSD
 
Old 07-23-2004, 01:40 PM   #2
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
At the mo I'm listening to an audio CD.

$ ps aux

xio 11025 0.1 1.8 21384 11712 pts/0 S+ 19:31 0:00 xmms /mnt/cdrom
xio 11026 0.0 1.8 21384 11712 pts/0 S+ 19:31 0:00 xmms /mnt/cdrom
xio 11027 0.0 1.8 21384 11712 pts/0 S+ 19:31 0:00 xmms /mnt/cdrom
xio 11028 0.0 1.8 21384 11712 pts/0 S+ 19:31 0:00 xmms /mnt/cdrom

The same thing happens when listening to an MP3.

I'm sure someone else can explain why :)
 
Old 07-23-2004, 03:11 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Ask that to xmms team
but processes that use 0.0 % CPU and 1.8 % Memory are not the ones that can hang a system or slow it
 
Old 07-23-2004, 03:18 PM   #4
WMD
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware, Debian
Posts: 484

Rep: Reputation: 30
Linux isn't multithreaded, so it has to run different processes for parts of an app. Not to worry, it isn't using any more memory as it would otherwise.
 
Old 07-23-2004, 03:29 PM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
noticed something similar the other day when I used alt+tab to change between aps: xmms consisted of three different 'steps' player, equalizer and playlist... add an mp3 codec and an output plug-in .... how many threads would that give you?
 
Old 07-23-2004, 04:26 PM   #6
GodSendDeath
Member
 
Registered: Mar 2004
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for everyones input..... it sounds linmix is right. Its probably just multithreaded to handle pieces like plugins and playlists.... I just wanted to make sure the same app wasnt being opened 5 times.

-GSD
 
Old 08-26-2004, 05:09 AM   #7
slash-bin
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
Question multiple proc

Hi guys,

I'm running slack 10 since a few days and here's what i've just noticed:


When i'm running dcgui-qt or xmms i have several thread appearing if i do a [ps -ef] command

this is rather annoying my system is very slow for a 2.8ghz with 1g of ram

Aside this if i do a [top] command it mark upthere [CPU(S): blablabla ]

When i was under 9.1 it was marking me { CPU0: bla bla bla } (i have hyperthread)
{ CPU1: bla bla bla }

I took my old .config which was the very good one with all my drivers working and recomp my 2.4.26 kernel as i always do with the hyperthreading support in it...

i suspect some forking problem somewhere but i ain't that good to understand the thing


Any id of what's going on ?
 
Old 08-26-2004, 11:14 AM   #8
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
different modules of the same program could be responsible for the appearance of a thread for each: plug-ins, playlist, equaliser, etc. all get 1 thread each.
 
Old 08-26-2004, 03:05 PM   #9
slash-bin
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
okyo

thanx for the hint

Any idea about my lost CPU ??
 
Old 08-26-2004, 03:10 PM   #10
slash-bin
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
just noticed ... i am no more using my whole ram

it seems like i use 450 meg on my 1024 (usually it's more like 950 meg used by whatever)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to write multiple threads working simultaneously ? indian Programming 3 09-19-2011 11:41 PM
ftp client that supports multiple threads? touser Linux - Software 2 11-27-2005 09:15 PM
Multiple threads vs Multiple processes deveraux83 Programming 1 05-11-2005 10:22 AM
Multiple Threads excel28 Programming 5 01-06-2004 08:46 PM
how to use multiple nntp threads? bankrupt Linux - Networking 1 12-27-2003 09:49 PM

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

All times are GMT -5. The time now is 02:20 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