www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/03/17/15:15:30

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: themouse <usul DOT the DOT mouse AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: demand loaded?
Date: Tue, 17 Mar 2009 13:12:07 -0700 (PDT)
Organization: http://groups.google.com
Lines: 38
Message-ID: <d3c2c457-ded0-4fbc-9e26-84c8b507d325@o36g2000yqh.googlegroups.com>
References: <0211e58d-1d17-494d-9411-28dc3b6d6571 AT c36g2000yqn DOT googlegroups DOT com>
<200903171651 DOT n2HGp9Cr021772 AT envy DOT delorie DOT com> <4fbb7d75-05a8-4f6b-887b-ab5ba2f4b3f2 AT p20g2000yqi DOT googlegroups DOT com>
<200903171925 DOT n2HJP4UD026185 AT envy DOT delorie DOT com>
NNTP-Posting-Host: 209.83.80.194
Mime-Version: 1.0
X-Trace: posting.google.com 1237320727 3939 127.0.0.1 (17 Mar 2009 20:12:07 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Tue, 17 Mar 2009 20:12:07 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: o36g2000yqh.googlegroups.com; posting-host=209.83.80.194;
posting-account=mk-1hQoAAABRHA7wwAt_3thfjpGkh8Qu
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5;
.NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; InfoPath.2; .NET CLR
3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Mar 17, 2:25=A0pm, DJ Delorie <d DOT  DOT  DOT  AT delorie DOT com> wrote:
> > but when you create a new object malloc or whatever. would that be
> > considered on demand? Or are you talking about something completely
> > different.?
>
> There are two things to consider here:
>
> 1. when the program is first loaded off disk, it can be loaded all at
> =A0 =A0once or demand loaded.
>
> 2. when you ask the DPMI server for memory, the server can demand page
> =A0 =A0it or not.
>
> I'm not sure, but djgpp might zero out allocated memory (at least, the
> first time) to make sure it's not "dirty" from the OS. =A0If it does
> that, then it won't be demand paged in (although the os might still
> demand page it *out*).
>
> Once memory is paged in, the os can still swap it out if it needs to.
> That's up to the DPMI provider, not djgpp itself.

Are you saying that if I have a collection of objects that I would
HAVE to put a max number to the number that I want?

Say I have a grid of columns and rows.
when I program do I have to say only 10 loaded at a time and write
paging functionality.
Instead of adding one to the list programaticallty?

what about something like this?
http://www.geekpedia.com/tutorial7_Creating-a-collection-class-in-Cplusplus=
.html

Perhaps I have been spoiled by dot net :P or is this a limitation I
need to learn to live with?

~theMouse

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019