[MPlayer-users] libmp1e

Gábor Lénárt lgb at lgb.hu
Sun Dec 9 16:57:59 CET 2001


On Sun, Dec 09, 2001 at 02:34:51PM +0200, Arpi wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi,
> 
> > >	Fantastic!   Threads are a useful programming concept but 
> > >	introduce portability problems.   As the (apparently) only
> threads sux.
> they give big mess by sharing everything between processes.
> i prefer shared mem + fork() + pipe, it's much cleaner way to share data
> between processes.

Ehhh, not cleaner at all :)
fork'ed processes have got separated data segments, so you must use
tricks to share data (you must hack your source to use shared mem+ pipe)
while threads give you shared data segment without any extra work.
Also, forked processes give work for VM to do 'copy in demand' to separate
data segments. OK, you would know more about threads :) 

Bye: FIFOman :)




More information about the MPlayer-users mailing list