On Thu, 2003-05-29 at 13:10, Marc M. Adkins wrote:
> My original comment was regarding threads, not processes.  I run on Windows
> and see only two Apache processes, yet I have a number of Perl interpreters
> running in their own ithreads.  My understanding of Perl ithreads is that
> while the syntax tree is reused, data stored in the parent ithread is
> cloned.

Remember, this is an OS-level feature.  Perl doesn't have to do
anything.  The OS keeps track of the fact that the pages in memory have
not been touched since they were "copied" and doesn't actually bother to
copy them.

> In addition, since I'm on Windows, I'm not convinced that the type of
> OS-level code sharing you're talking about is in fact done.  Windows doesn't
> fork().

It's not about forking, it's about having a modern virtual memory
system.  Windows definitely has this feature.

- Perrin

Reply via email to