Re: Avahi AutoIp for No-MMU systems with ucLinux

"Gavin Lambert" <[email protected]>
Newsgroups gmane.linux.uclinux.devel
Message-ID <0b6a01cd864a$7f0b20b0$7d216210$@com>
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
[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.