HPAC Assignment: Pg-Dbda
HPAC Assignment: Pg-Dbda
PG-DBDA
Saikat Chakraborty
01/10/2019
Definition:
Real, or physical, memory exists on RAM inside the computer. Virtual memory, as its name suggests,
doesn’t physically exist on a memory chip. It is an optimization technique and is implemented by the
operating system in order to give an application program the impression that it has more memory than
actually exists. Virtual memory is implemented by various operating systems such as Windows, Mac OS X,
and Linux. Virtual memory uses a portion of the secondary storage (hard drive) to act like primary storage
(RAM). It makes your computer act as though it has more RAM. At boot-time, the OS is loaded entirely on
the RAM in order to start-up the system properly. During this time, if the physical RAM has less capacity
than the OS size, it will be impossible for the computer to start. This is where virtual memory
implementation comes into play. It takes a chunk of memory from the hard disk (usually 3.56 times the
capacity of the RAM) and utilizes the extra space to safely load the OS and boot the system.
Let’s say that an operating system needs X MB of memory in order to hold all the running programs, but
there’s currently only Y MB of available physical memory stored on the RAM chips (Y < X). The operating
system will then set up X MB of virtual memory, and will use a program called the Virtual Memory
Manager (VMM) to manage that extra capacity. The VMM will create a file on the hard disk that is (X-Y)
MB in size to account for the extra memory that’s needed. The OS will now proceed to address memory
as if there were actually X MB of real memory stored on the RAM, even though there’s really only Y MB
physically. So, to the OS, it now appears as if the full X MB actually exists. It is the responsibility of the
VMM to deal with the fact that there is only Y MB of real memory.
Primary key:
The attribute or combination of attributes that uniquely identifies a row or record in a relation is known
as primary key. It needs to be unique and not null.
Secondary key:
A field or combination of fields that is basis for retrieval is known as secondary key. Secondary key is a
non-unique field. One secondary key value may refer to many records.
Foreign key:
A foreign key is an attribute or combination of attribute in a relation whose value matches a primary key
in another relation. The table in which foreign key is created is called as dependent table. The table to
which foreign key is refers is known as parent table.