Hi Gavin.
Thanks for your reply.
Since I'm using Nios, then I don't think they are supporting (yet) XIP or PIC.
So I'll see if I can solve it by using the exec function.
Regards,
Niklas
> From: [email protected]
> To: [email protected]
> Subject: RE: [uClinux-dev] emulate fork
> Date: Wed, 10 Jun 2009 10:32:16 +1200
>
> Quoth Niklas Molin:
> > Problem is that the code is using fork and each child process is running
> > simultaneously (plus the parent process needs to be in charge of handle
> > all information each child processes are sending/receiving).
> > If I understood vfork() right, it will halt the parent process until it
> > _exit() or exec() (what is vfork() then used for?)?
> > Is there some other way to run parallel processes in uClinux or should I
> > try to change to a threaded system instead?
>
> If you vfork and exec in the child then both processes will run in parallel.
> The second process could be another copy
> of the same program (started with different parameters), or a standalone
> 'helper' program. This is essentially
> equivalent behaviour to fork(), it just requires additional setup (and more
> RAM, unless you're using XIP). They will
> share handles as normal for forked processes (so you can transfer data
> between them with pipes), but they won't share
> memory.
>
>
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
_________________________________________________________________
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/windows/windowslive/products/photos.aspx
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev