The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+18 votes

A multi-user, multi-processing operating system cannot be implemented on hardware that does not support

  1. Address translation
  2. DMA for disk transfer
  3. At least two modes of CPU execution (privileged and non-privileged)
  4. Demand paging
asked in Operating System by Veteran (59.4k points)
edited by | 2.4k views
Question now is corrected. the comment was before that :)
can anyone please expail in detail. please i didnot get anything whatever was spoken above and bellow

@Arjun sir, I think address translation is not necessary for providing memory protection. We can also achieve this using "Relocation and Limit register mechanism".

"When the CPU scheduler selects a process for execution,the dispatcher loads the relocation and limit registers with the correct values as part of context switch.Because every address generated by the CPU is checked against these registers,we can protect both the operating system and the other user programs and data from being modified by the running process."

source:galvin chap-9

I think "only" for he purpose of memory protection if we use PT then it will be overhead while context-switch due to the large size of PT(while less overhead in limit and relocation register).

@Arjun sir, can you please check this. 

That mechanism is not efficient -- the memory space will have to be divided before hand among a "fixed" set of processes. So, this will limit the no. of processes to a small number.
yes sir I agree when It comes to efficiency then this method will not work.But we can't say that without address translation protection is not possible.

C) should be only correct option here.

2 Answers

+29 votes
Best answer

Answer should be both A and C (Earlier GATE questions had multiple answers and marks were given only if all correct answers were selected). 

Address translation is needed to provide memory protection so that a given process does not interfere with another. Otherwise we must fix the number of processors to some limit and divide the memory space among them -- which is not an "efficient" mechanism.

We also need at least 2 modes of execution to ensure user processes share resources properly and OS maintains control. This is not required for a single user OS like early version of MS-DOS. 

Demand paging and DMA enhances the performances- not a strict necessity. 

Ref: Hardware protection section in Galvin

answered by Veteran (342k points)
edited by
Without the DMA the processor would have to do the IO by executing IO instrunctions, right ? So technically speaking a process will never get prempted as it will ALWAYS need the processor, there will be no waiting queue for IO, and not context switch ? Without context switching there will be no multi-processing ? So option B also will have to be part of the answer, right ?
then whats the correct answer??
How does address translation provides the memory protection.?
@rahul sharma

If more than one process is executing, then memory protection is required, because CPU may generate the same address and both the processes can wrongly read or write the data.
In multi processing and multi user os primary concern is security.this the reason to ensure security two modes are ans should be A,Cbecouse both option deal with security.

@Arjun sir,

How address translation is a necessity for providing memory protection.

Galvin says it can be provided only with the help of limit registers.

Since loading contents of limit registers is a privileged instruction, so we need two modes of execution for this.

@Ayush, limit register is also the part of address translation.

@reena_kandari .Cant we have just limit registers without address translation?Also,How exactly does address translation provides memory protection?Protection bits in page table or something else?

But in the absence of demand paging how will multiple processes co-exist in the main memory? There may be case that a process in particular is too big to fit in main memory or it alone occupies main memory completely and thus restricting other processes to get into main memory for processing (no multi processing).
–7 votes
demand paging.
answered by Active (1.5k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

35,507 questions
42,829 answers
42,183 users