Why is mapping required? Computer 'Paging' & 'Segmentation'.

Answer Posted / vikram

virtual address concept allows a operation system to execute
a process without having the entire process in the main
memory. That is you have only a part of the process which is
just enough for execution at that point of time. But from
the computers point of view it is thinking that the entire
process is available in the memory. To make this work we
make believe the computer with a bigger memory say 2gb
virtual memory but you are having only 1 gb physical memory.

now the computer as usually tries to get a part of the
process in the the cpu for execution. But the part requested
may be present in the main memory or not because we have
bluffed the computer by giving virtual address. So in
situation where we have the part in main memory we have to
give the computer with that physical address.

so the procedure which gives the physical address from its
virtual address is called paging.


Segmentation is totally a different concept. A segment would
comprise of a function that you have written in your code.
In this case to refer to a function you have to refer to
that function and then to the page that has this segment.
This concept is called segmented paging.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the context switch?

578


What are the deadlock avoidance algorithms?

552


What happens if we don’t override a run method?

746


Which technology does Pentium use - RISC or CISC?

583


Can you tell me the difference between semaphore and mutex.

630






Tell me something about the concept of memory leak?

606


Where are chkdsk logs stored?

605


What is the best page size when designing an operating system?

680


What is raid? What are the different raid levels?

558


Is non-pre-emptive scheduling frequently used in a computer? Why?

548


What is the difference between 32 bit and 64 bit os?

523


Can anybody send me Excel tips and improtant formul...... please.

1633


What is disk operating system in computer?

519


How do I completely remove all traces of a program?

679


Which is better chkdsk r or f?

525