Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mplayer using 2 procs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Robin79
l33t
l33t


Joined: 18 Oct 2003
Posts: 632
Location: /home/valdemarsvik

PostPosted: Thu Feb 12, 2004 2:19 am    Post subject: Mplayer using 2 procs? Reply with quote

Should mpalyer really be using two processes?
_________________
Gentoo 2005.0
ASUS P5AD2 Deluxe MB
Intel P4 3.2GHz
PCI-E Nvidia Geforce PCX 5750
--------------------

Registered Linux User Nr # 319050 http://counter.li.org
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Thu Feb 12, 2004 8:16 am    Post subject: Reply with quote

I assumed, you mean processors and not processes?

And what exactly is your problem with this? I gues the point of having a dual processor system is to use both of them? Probably mplayer is multi threaded and apperently both threads run on an other proc, but hey that is the idea of more processors, so I consider this something you want.
So what exactly is your question? If you can force one processor to do it all alone, and do something else on your other proc?
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Feb 12, 2004 2:34 pm    Post subject: Reply with quote

I'm not 100% sure but from what I can tell there is only one process while mplayer is doing it's initial checks, then a second one when the video screen appears. It seems to know what it's doing.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Robin79
l33t
l33t


Joined: 18 Oct 2003
Posts: 632
Location: /home/valdemarsvik

PostPosted: Thu Feb 12, 2004 10:53 pm    Post subject: Reply with quote

okey then itsd altright then cause i thought it only used on process
_________________
Gentoo 2005.0
ASUS P5AD2 Deluxe MB
Intel P4 3.2GHz
PCI-E Nvidia Geforce PCX 5750
--------------------

Registered Linux User Nr # 319050 http://counter.li.org
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Fri Feb 13, 2004 12:22 am    Post subject: Reply with quote

It's pretty normal. You don't have to worry about it. If you run XMMS, it also uses more than one process.
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Fri Feb 13, 2004 3:05 am    Post subject: 2 cents Reply with quote

i don't know the specifics for mplayer or xmms, but, in general, on a linux based system the output of 'ps' is misleading, because the threading model is implemented as "kernel processes" ... or at least the thread manager is ...

however, from my experience, you never have only two seeming processes if the app is multi-threaded...this is because 1 thread is the first/main thread, the 2nd is the "thread manager", and the 3rd is the first thread you tried to create from the program (making it your 2nd thread)

Yeah...the "model" is okay on linux ... it's the sticky points of the threads being implemented as processes that classically sucked (i'm sure nptl or whatever is 100x better) ... things like: well, what happens if a signal is sent to the process? in terms of the model, the "process" is the ONE process, however, being the threads do have PIDs because of how they are implemented, suddenly one of the threads could die as a process dies from a signal, and the others know nothing of it (because pthread_kill or whatev wasn't used)

what? mask all maskable signals you say? nope ... the thread manager uses signals to talk to the thread-processes...

*sigh*

system programming on linux (and solaris) for a full 18 month project gave me my only reasons to dislike linux in the least...which is sad, 'cause it rocks me....
_________________
jñanam bandha
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum