[MPlayer-users] libmp1e

Arpi arpi at thot.banki.hu
Sun Dec 9 17:07:21 CET 2001


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)
hack? if you call a function call to hack, then yes.

> while threads give you shared data segment without any extra work.
yes. threads share everything. and THIS is the problem. it usually
results unwanted side-effects and memory overwrites. :(
not speaking about non-threadsafe code or libs...

i like much more limit which part of memory to be shared, and keep
others separated, avoiding unwanted things to happen.


A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu




More information about the MPlayer-users mailing list