Quoth Michael Schnell: > "Real fork behavior" also includes creating threads (parent and child > share memory, open files and other stuff). But this is better achieved > using Posix Threads provided by ptheradlib. I suppose pthreadlib is > available for nearly all archs.
No. I think you're thinking of clone(), which allows you to specify that the cloned process completely shares all memory, instead of being duplicate but separate (usually copy-on-write) as fork() does. Threads imply shared memory, not duplicated memory; so you could implement threads via clone() but not via fork(). (And not via vfork(), since even though that has shared memory it doesn't have simultaneous execution.) But as you said, if you want threads then you should use a threading library instead. _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev