lkml.org 
[lkml]   [2007]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Multiple instances of program sharing same text segment ?
Ravinandan Arakali (rarakali) wrote:
> I note that do_exec calls do_mmap to map the executable file to memory.
> But not sure what happens(w.r.t text sharing) when another instance of
> the program is invoked. BTW, this is 2.6.10.

Yes, they will be shared. As far as the rest of the kernel is
concerned, an mmap is an mmap is an mmap, and the pages will be shared.

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

\
 
 \ /
  Last update: 2007-03-20 19:15    [W:0.036 / U:1.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site