l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 29 19:04

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[no subject]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]

DOS had a similar mechanism to "zones" with its "arenas", but it didn't
bother with handles (since segments were such a spiffy mechanism - 

Windows 3.1 defined a "local heap" that was reclaimed when a program
exited, and used handles when handing out memory.  However, Windows 3.1
actually used virtual memory to deal with the local heap and program
machine code, so it was actually slightly more robust than the Mac.

The problem was that all three of these operating systems _also_ allowed
the allocation of memory outside the application-specific pools... so a
program could allocate memory outside its own zone/arena/heap and fail to
return it before exiting.  This was particularly a problem for Win3.1
because after the introduction of "386 enhanced mode" and typical memory
requirements exceeded 4MB most programmers allocated all memory from the
global heap and immediately locked every handle they received because the
local heap was still only 64K!

So I think every operating system has recognized the need to reclaim
memory when a program exits, but without (and sometimes with) memory
management hardware support programming mistakes could still cause
"global" memory leaks in the instances I am familiar with.  So I have no
examples to fit Pete's original question, but the problem was quite real

Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!