POV-Ray : Newsgroups : povray.off-topic : I am convinced... : Re: I am convinced... Server Time
3 Sep 2024 19:13:00 EDT (-0400)
  Re: I am convinced...  
From: Darren New
Date: 2 Feb 2011 12:46:09
Message: <4d499861$1@news.povray.org>
Invisible wrote:
> Connect two outputs together,

I don't think two outputs would have a gate between them like that. However, 
at this point I'm really over my head. I've never *actually* written 
microcode for a real computer myself. :-)

> OK. So what's all this stuff about "the OS loads programs by memory 
> mapping them"? (Hopefully this will explain why programs show up as 
> generating a non-zero number of "page faults", even though no swapping 
> is actually happening...)

It's exactly the same thing. If you have a chunk of executable that's 
supposed to be in addresses 0x1000 to 0x3000, and that's at offset zero in 
the file, you memmap the file into the page tables. Basically, you use the 
executable file itself as the swap file for that region of memory.

That's why in UNIX you can delete a running executable file, but you can't 
write to it. Because you're actually running code right out of the file, and 
not a copy of the file.

-- 
Darren New, San Diego CA, USA (PST)
  "How did he die?"   "He got shot in the hand."
     "That was fatal?"
          "He was holding a live grenade at the time."


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.