1. A certain editor has 100 KB of program text, 30 KB of initialized data, and 50 KB of BSS. The initial stack is 10 KB. Suppose that three copies of this editor are started simultaneously. How much...

1 answer below »

1. A certain editor has 100 KB of program text, 30 KB of initialized data, and 50 KB of BSS. The initial stack is 10 KB. Suppose that three copies of this editor are started simultaneously. How much physical memory is needed (a) if shared text is used, and (b) if it is not?


2. In Linux, the data and stack segments are paged and swapped to a scratch copy kept on a special paging disk or partition, but the text segment uses the executable binary file instead. Why?



Answered Same DayDec 24, 2021

Answer To: 1. A certain editor has 100 KB of program text, 30 KB of initialized data, and 50 KB of BSS. The...

Robert answered on Dec 24 2021
126 Votes
1(a) :
Each instance should have seperate stack, separate initialized variables, separate uninitial
ized(BSS)
variables
(10+30+50) + (10+30+50) + (10+30+50) = 270 KB
In addion to this three instances can share the code(program text) = 270 + 100 = 370 KB
1(b) :
Each instance occupies...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here