in Operating System
418 views
0 votes
0 votes
A computer provides each process with 65536 bytes of address space divided into pages. A particular program has a text size of 32768 bytes, a data size of 16386 bytes, and a stack size of 15870 bytes. What is the maximum page size in bytes such that the program fits in the given address space? Each page must contain either text, data, or stack, not a mixture of two or three of them.
in Operating System
418 views

1 comment

edited by

Similar solution: https://www.cs.utexas.edu

0
0

1 Answer

0 votes
0 votes
4kb because maximum among stack,data,and text is 32768 and whch is equals to 2^15 = 4kb

1 comment

We have 65536 bytes of address space, and we choose 32768 bytes for each page. That means in total we have 2 pages, which is not sufficient for 3 fields (code, data, stack).
0
0

Related questions