lkml.org 
[lkml]   [1999]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectkernel_thread Vs. fork
Hi all, 
I have following doubt. Please help me clear it.

If i create a new process using "kernel_thread" which later execs a
new program, then is this same as doing a fork followed by exec (because
during exec the process's address space will be reinitialized and the
reference count on old one will be decremented which
it was sharing with the parent)?

Later, when the child process exits, will it have any effect on the parent's
context? (address space etc. - I have called kernel_thread with only
CLONE_VM (no CLONE_FS ...) set.

Thanks,
Sushil.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.018 / U:1.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site