Query on process and threads


#1

we can say that an overlay is:
a)part of os
b)specific memory location
c)single contiguous memory used to run large programs
d)overloading the system with many user files


#2

Answer is C.
Since in overlay we use the memory location to run large files. For example if there is a two pass assembler which needs 150 kB of memory bt we have 100kb then the assembler has two phases i.e one phase needs 70kb then other needs 80kb say then for one pass we will assign 70kb of memory after it is completed then other 80kb of memory for 2nd pass this way we run a large program.

P.S. PLEASE PROVIDE THE ANSWER FOR THE QUESTIONS YOU ARE PROVIDING


#3

abhi your answer is correct


#4

Yes the overlays are used for the processes whose memory is larger than allocated memory. The overlays will keep the useful instructions and data in them. If any other instructions are needed they will replace the other instructions which are no longer useful.