Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4346608
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:11:44+00:00 2026-05-21T12:11:44+00:00

At the end of this wikipedia article, in a section A simple example in

  • 0

At the end of this wikipedia article, in a section “A simple example in C” it is claimed that “the operating system delays real memory allocation until something is written into it”. From my experience this is not possible or better put, “not feasible”. An OS/Processor does not track each and every memory write. Is the wikipedia article wrong like I suspect ? If not enlighten me.

edit

I guess when one takes page faults into consideration, than it does make sense in some ways. However, page faults and virtual memory don’t fit well with a discussion on memory leaks. I mean is if process allocates 2 pages, writes to one (page one), and then leaks both pages it’s still a leak regardless of weather the second page leaks physical memory or not. I guess the section should differentiate between physical memory and virtual memory ? 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T12:11:45+00:00Added an answer on May 21, 2026 at 12:11 pm

    Depends on the operating system. On Linux, for example, it actually does work like that. Look up “optimistic memory allocation”.

    In addition to that, there is the differentiation between virtual memory and physical memory. On most operating systems, you are using virtual memory, so even though you allocate many megabytes worth of memory, the actual physical memory will only be tapped once you write into it (at which point what had been at that location before might get paged back to disk).

    There is the “virtual address space” which is basically just “logical” memory that is then later mapped to the physical RAM (or your hard drive, if the memory has been paged out).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From this Wikipedia article: http://en.wikipedia.org/wiki/Hamiltonian_path_problem A randomized algorithm for Hamiltonian path that is fast
Accordingly to the Wikipedia article on dynamic arrays , inserting/deleting at the end of
I am trying to deserialize a stream but I always get this error End
It's been a while since I've programmed a GUI program, so this may end
I have this bit of code I found on the web at the end
I have some code like this: If key.Equals(search, StringComparison.OrdinalIgnoreCase) Then DoSomething() End If I
I have this Task model: class Task < ActiveRecord::Base acts_as_tree :order => 'sort_order' end
I'm doing something like this: @protocol CallbackDelegate -(void) performCallback; @end @interface MyObject : NSObject
I'm at wits end now, I have googled this to death and found nothing.
Can I write to the end of a 5GB file in Java? This question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.