POV-Ray : Newsgroups : povray.off-topic : Tell me it isn't so! : Re: Tell me it isn't so! Server Time
10 Oct 2024 05:21:51 EDT (-0400)
  Re: Tell me it isn't so!  
From: clipka
Date: 28 Jul 2009 01:15:05
Message: <web.4a6e892dac52dfd4813466d60@news.povray.org>
"David H. Burns" <dhb### [at] cherokeetelnet> wrote:
> A peek function would still be useful, but a poke function on a multi
> tasking system where
> the operating system is in RAM ... well at best, you might reboot a lot.

Would be very boring these days: At worst, poking around would get that
particular app jam itself, and you'd have to kill it via the task manager.

The operating system (with lots of hardware support from the CPU) does a good
job at not allowing any app to peek or poke around in memory allocated to other
programs or the OS. Applications even typically get to see different sections of
physical memory at any particular address.

BTW, in C you can actually peek & poke around as you like on virtually all
platforms, simply by assigning an arbitrary integer value to a pointer and then
accessing the memory location pointed to.

May result in the application getting terminated for an access violation though,
courtesy of Intel's "protected mode" and paging mechanisms, which can be used to
automatically trigger a hardware interrupt when certain memory address ranges
are accessed, so that the OS can take over and handle the access accordingly
(killing a misbehaving program, swapping virtual memory back in, or the like).


Post a reply to this message

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