| delorie.com/archives/browse.cgi | search |
| From: | "Rafał Maj" <r_maj AT poczta DOT onet DOT pl> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Memory question |
| Date: | Mon, 21 Aug 2000 21:39:57 +0200 |
| Organization: | Academic Computer Center CYFRONET AGH |
| Lines: | 26 |
| Message-ID: | <8ns0va$qv4$1@info.cyf-kr.edu.pl> |
| NNTP-Posting-Host: | d-94-53-25.cyfronet.krakow.pl |
| X-Trace: | info.cyf-kr.edu.pl 966887210 27620 149.156.1.185 (21 Aug 2000 19:46:50 GMT) |
| X-Complaints-To: | news AT cyf-kr DOT edu DOT pl |
| NNTP-Posting-Date: | 21 Aug 2000 19:46:50 GMT |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2615.200 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hi,
I just wanted to know, if unloading & re-loading all data from memory will
cause something like memory defragmentation ?
What do You think about this example pseudo-program :
main() {
1) Allocating some memory for few small arrays.
2) Loading data to memory
In loop {
3) Allocating many small buffers
4) deallocating all memory from 3)
}
--- now memory is now probably fragmented ---
defragmentation :
5) Deleting all data from 2)
6) Re-loading all data
}
FINAL QUESTION :
I think, that all memory (above arrays allocated in 1) ) will be now totally
defragmentate, right ???
Thanks
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |