Re: Process, Lightweight Process and Thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel....

On Sun, Jan 17, 2010 at 12:10 AM, Daniel (Youngwhan) Song
<breadncup@xxxxxxxxx> wrote:
> Thank you, Mulyadi, now, I could understand about NPTL implementation and
> lightweight process concept.

Glad you make it.... :)

> One thing I want to check is that it looks that the system call, clone()
> eventually calls do_fork() in fork.c
> (http://lxr.linux.no/#linux+v2.6.32/kernel/fork.c#L1375) which is the last
> stage of the creation of thread.
>
> So, it looks like fork(), vfork(), and clone() system calls through
> sys_fork(), sys_vfork(), sys_clone(), and they are eventually calls
> do_fork().

I can not check it right now, so I leave that to your own finding. The
basics is the same though, there is one fundamental function whose job
is create thread....then it called by many different wrapper with
different set of flags. I guess you already got this idea.


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux