TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Duncan Christie
from: Mike Bilow
date: 1995-09-01 01:58:36
subject: Re: OS/2

Duncan Christie wrote in a message to Mike Bilow:

 DC> Ok...but can't a protected mode program only address 4GB of
 DC> memory (using  memory paging).  Then if 8 programs are
 DC> running (each using all of their .5GB  memory space) that
 DC> would take up all of the space.

No, it doesn't work that way.  Each program sees its local 0.5 GB of memory
mapped by the Local Descriptor Table.  Since each program has a unique LDT,
each program sees a different set of pages comprising that 0.5 GB.  You can
have as many programs each seeing its own 0.5 GB as you can have LDTs in
the system.

 DC> Then were does the 3.5GB for each program come from?

The memory seen by all processes in common is mapped by the Global
Descriptor Table; there is only one GDT in the system.  This allows the
operating system to switch tasks easily without swapping itself.

 DC> Also, do you know where are could get more info  on the 
 DC> subject?  

You might start with Robert Hummel's excellent book, "The Processor
and Co-Processor."  Another good book is Deitel and Kogan's "The
Design of OS/2."  There is the Intel 386 Programmers Reference Manual,
but it is hard reading.
 
-- Mike


---
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 323/107 150 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.