Logical Address
Logical Address
Physical Address
• It identifies a physical location of required data in a memory. The user never directly
deals with the physical address but can access by its corresponding logical address.
• The set of all physical addresses corresponding to the logical addresses in a Logical
address space is called Physical Address Space.
User can view the logical User can never view physical address
Visibility
address of a program. of program.
Swapping
• Swapping is one of the methods of memory management.
• In swapping an idle or a blocked process in the main memory is swapped out to the
backing store (disk) and the process that is ready for execution in the disk, is
swapped in main memory for execution.
• Consider a real-time example:
• In Windows operating system, as soon as the system is booted 50-100 process starts
executing, these processes do nothing but check for application updates. Such
processes take up to 5-10 MB memory space. The other processes start checking for
the incoming network, incoming mails and the other things.
• This all happens before a user has started any process. A single user application
nowadays takes about 500 MB of memory space just to start up. So keeping all these
processes in main memory would require a large amount of main memory. And the
increasing the size of main memory would increase the cost of the system. To deal
with these memory overloads we have come up with the two
approaches, swapping and virtual memory.
• A process must be in the main memory before it starts execution. So, a process that
is ready for execution is brought in the main memory. Now, if a running the process
gets blocked. The memory manager temporarily swaps out that blocked process on
to the disk. This makes the space for another process in the main memory.
Paging
Paging is a memory management scheme that eliminates the need for
contiguous allocation of physical memory. This scheme permits the
physical address space of a process to be non – contiguous.