On Thu, Feb 28, 2008 at 1:23 AM, fooler mail <[EMAIL PROTECTED]> wrote: .. > > I've been reading /usr/src/linux*/kernel/fork.c > > and do_fork() does not seem to be a wrapper around > > some thread-creation routine, if by thread you mean > > the new thread and its parent shares almost all > > resources (text, data, heap, open files, etc), except > > that the thread has its own stack. For now, I'm > > confused. > > the correct statement there is that fork(), vfork() and threads are > just a wrapper around the clone() system function call...
fooler, you're absolutely right. That's what I meant by fork() and clone() (which is the thread-creation routine) being equivalent. re: equivalent applications on Windows vs Linux, I'll go out on a limb here because I'm not supposed to talk about products but TimesTen is 2X as fast on Windows than on Linux, because on Linux it is built with GCC and on Windows with the Intel compiler. But the latest version (7.0.4) is build with Intel compiler on Linux so not an issue any longer. But my point is: the Linux kernel and all its userland is built with GCC. My understanding is that the kernel won't build with the Intel compiler. So compared to other software which is built with the better compiler, Linux will always be on the losing end. _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

