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
