Results 1 to 2 of 2

Thread: Windows memory questions

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2004
    Posts
    52

    Windows memory questions

    Hi Everyone -

    Couple of simple questions...

    1) How does windows handle starting 2 or more applications with a same base starting address??

    2) If (as i think) windows just starts applications at a certain area,
    then quickly moves them to another spot in memory - what are the chances an application that spawns several other applications
    can come back and step on the starting applications memory space????

    thanks
    tony

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    In Windows, every application has its own virtual address space. Within this space, it's completely alone and can thus have any base address it wants. Applications can't interfere with each other because they don't see each other.

    In physical memory, the applications are at different addresses, but that doesn't matter because they don't know it. That's the duty of the memory manager of the OS.


    It's a little more complicated than that, because Windows has a few address ranges reserved for special use, but that's not all that important.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width