Question

1. Four functions, each of length 500 words, are linked together into one process and loaded into memory. Consider four possi

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

Paging (no segmentation)

  • There will be 1 page table, occupying 1 * 512 = 512 bytes
  • Each function has 500 bytes, but each function will be allocated full 1 page. So, total of 4 pages will be used, occupying 4 * 512 = 2048 bytes

So, total bytes occupied

= 512 + 2048

= 2560 bytes

2.

Segmentation (no paging)

  • There will be 1 segment table, occupying 1 * 512 = 512 bytes
  • Now, either all 4 functions might combine into 1 segment, or each function might have its own segment. Irrespective, total space occupied will be 4 * 500 = 2000 bytes

So, total bytes occupied

= 512 + 2000

= 2512 bytes

3.

Segmentation and paging (each function becomes a separate segment)

  • There will be 1 segment table, occupying 1 * 512 = 512 bytes
  • There will be 1 page table for each segment/function. So total space for these 4 page tables = 4 * 512 = 2048 bytes
  • Also, each function has 500 words, but will occupy 1 full page. So there will be total 4 pages. So total space occupied by 4 pages = 4 * 512 = 2048 bytes

So, total bytes occupied

= 512 + 2048 + 2048

= 4608 bytes

4.

Two-level paging (page table is paged)

  • There will be 1 first-level page table, occupying 1 * 512 = 512 bytes
  • Now, we assume that there will be 1 second-level page-table for each function. With this assumption, there will be total 4 second-level page tables, occupying 4 * 512 = 2048 bytes
  • As before, each function will occupy 1 page. So total space by all 4 pages = 4 * 512 = 2048 bytes

So, total bytes occupied

= 512 + 2048 + 2048

= 4608 bytes

Add a comment
Know the answer?
Add Answer to:
1. Four functions, each of length 500 words, are linked together into one process and loaded...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 3.   Given three subroutines of 550, 290, and 600 words each, if segmentation is used then...

    3.   Given three subroutines of 550, 290, and 600 words each, if segmentation is used then the total memory needed is the sum of the three sizes (if all three routines are loaded). However, if paging is used then some storage space is lost because subroutines rarely fill the last page completely, and that results in internal fragmentation. Determine the total amount of wasted memory due to internal fragmentation when the three subroutines are loaded into memory using each of...

  • 1) Two parallel beams of light are brought together on a surface. Each beam has wave length h-500...

    1) Two parallel beams of light are brought together on a surface. Each beam has wave length h-500 nm and intensity 1 W/m at the surface. What is the resultant intensity for each of the following path lengths or phase differences between the beams? Phase or path length difference Intensity (W/m) 0 radians (phase) T/2 radians (phase) 60 degrees (phase) 3π radians (phase) 300 nm (path length) 1000 nm (path length) 5.5 λ (path length) 2) A wave of wavelength...

  • 8.9 Coding lab #5: create a dynamic array ADT and a singly linked list ADT. Honor Code...

    8.9 Coding lab #5: create a dynamic array ADT and a singly linked list ADT. Honor Code Your answers to this homework must be your own work.You are not allowed to share your solutions.You may not engage in any other activities that will dishonestly improve your results or dishonestly improve or damage the results of others. Plagiarism Plagiarism is when you copy words, ideas, or any other materials from another source without giving credit. Plagiarism is unacceptable in any academic environment....

  • You will need those four files: d_node.h, d_nodel.h, d_random.h, and prg9_1.cpp Program Definition 1. Create program...

    You will need those four files: d_node.h, d_nodel.h, d_random.h, and prg9_1.cpp Program Definition 1. Create program definition with the following templates and methods: // returns the sum of all elements in a single linked list template <typename T> int sum(node<T> *front); // outputs the nodes of a single linked list in reverse order. template <typename T> void outputReverse(node<T> *front); Main Method: add before the "cout << "\nOutput in Descending Order: ";" line call sum() to print sum of all elements...

  • How to write the insert, search, and remove functions for this hash table program? I'm stuck......

    How to write the insert, search, and remove functions for this hash table program? I'm stuck... This program is written in C++ Hash Tables Hash Table Header File Copy and paste the following code into a header file named HashTable.h Please do not alter this file in any way or you may not receive credit for this lab For this lab, you will implement each of the hash table functions whose prototypes are in HashTable.h. Write these functions in a...

  • 1. In methodological articles, authors a. trace the development of a theory, or analyze existing theory,...

    1. In methodological articles, authors a. trace the development of a theory, or analyze existing theory, pointing out flaws or demonstrating the advantage of one theory over another b. report original research and typically organize their articles into distinct sections that reflect the research process: introduction, Method, Results, and Discussion c. present new methodological approaches or modifications of existing methods to the community of researchers d. report case materials obtained while working with an individual, a group, a community, or...

  • Hi there! I need to compare two essay into 1 essay, and make it interesting and...

    Hi there! I need to compare two essay into 1 essay, and make it interesting and choose couple topics which im going to talk about in my essay FIRST ESSAY “Teaching New Worlds/New Words” bell hooks Like desire, language disrupts, refuses to be contained within boundaries. It speaks itself against our will, in words and thoughts that intrude, even violate the most private spaces of mind and body. It was in my first year of college that I read Adrienne...

  • 10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated...

    10. Write a one-page summary of the attached paper? INTRODUCTION Many problems can develop in activated sludge operation that adversely affect effluent quality with origins in the engineering, hydraulic and microbiological components of the process. The real "heart" of the activated sludge system is the development and maintenance of a mixed microbial culture (activated sludge) that treats wastewater and which can be managed. One definition of a wastewater treatment plant operator is a "bug farmer", one who controls the aeration...

  • Discussion questions 1. What is the link between internal marketing and service quality in the ai...

    Discussion questions 1. What is the link between internal marketing and service quality in the airline industry? 2. What internal marketing programmes could British Airways put into place to avoid further internal unrest? What potential is there to extend auch programmes to external partners? 3. What challenges may BA face in implementing an internal marketing programme to deliver value to its customers? (1981)ǐn the context ofbank marketing ths theme has bon pururd by other, nashri oriented towards the identification of...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT