Question

Most systems allow a program to allocate more memory to its address space during execution. Allocation...

Most systems allow a program to allocate more memory to its address space during execution. Allocation of data in the heap segments of programs is and example of such allocated memory. What is required to support dynamic memor allocation in the following schemes?

a. Contiguous memory allocation

b. Pure segmentation

c. Pure paging

Explain each of the above schemes and provide sources to back your answers.

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

Contiguous-memory allocation:

  • This schema requires relocation of the entire program,
  • Explanation: Since there is no enough required space for the program to grow beyond it's allocated memory space, it may require relocation of entire program.

Pure segmentation:

  • This schema requires relocation of the segment that needs to be extended,
  • Explanation: Since there is no enough required space for the segment to grow beyond it's allocated memory space, it may require relocation of segment.

Pure paging:

  • This schema requires incremental allocation of new pages
  • Explanation: It is possible in this scheme without requiring relocation of the program's address space.
Add a comment
Know the answer?
Add Answer to:
Most systems allow a program to allocate more memory to its address space during execution. Allocation...
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
  • After reading each problem provide the answer using at least two sources such as an academic...

    After reading each problem provide the answer using at least two sources such as an academic journal or a book chapter (not your text book). While providing answer, you must use information from your sources to answer the question. At the end of each answer, provide a conclusion. Put all your answers in one Word file and submit below. Q. Most systems allow a program to allocate more memory to its address space during execution. Allocation of data in the...

  • Programs written in a language that supports pointers and dynamic memory allocation can suffer from dangling...

    Programs written in a language that supports pointers and dynamic memory allocation can suffer from dangling pointers and lost heap-dynamic variables (or garbages). (a) A dangling pointer is a pointer that contains the address of a piece of memory that no longer belongs to the program. Give one scenario that can cause dangling pointers. Support your scenario with sample codes in your favorite language. Poorly implemented languages leave the detection of the dangling pointer problem to the operating system. Suggest...

  • Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory...

    Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory allocation) and have it pointed to by a pointer (of type int * ) named ptr_1. Use ptr_1 to assign the number 7 to that dynamically allocated integer, and in another line use printf to output the contents of that dynamically allocated integer variable. Write the code to dynamically allocate an integer array of length 5 using calloc or malloc and have it pointed...

  • This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation...

    This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation inside a class. Task One common limitation of programming languages is that the built-in types are limited to smaller finite ranges of storage. For instance, the built-in int type in C++ is 4 bytes in most systems today, allowing for about 4 billion different numbers. The regular int splits this range between positive and negative numbers, but even an unsigned int (assuming 4 bytes)...

  • computer science

    CSCI 3000 Homework 4In this assignment, you will implement a simple version of Computer Lab administration system in C++. Your program will monitor computers in 4 computer labs and will allow users to log in and log out. Each computer lab has different number of computers.·      Lab 1 has 10 computers·      Lab 2 has 6 computers·      Lab 3 has 3 computers·      Lab 4 has 12 computersHere is a sample state of the system:Lab ArraySome of the computers are free (no...

  • This assignment is comprised of 3 parts: ​All files needed are located at the end of...

    This assignment is comprised of 3 parts: ​All files needed are located at the end of the directions. Part 1: Implementation of Dynamic Array, Stack, and Bag First, complete the Worksheets 14 (Dynamic Array), 15 (Dynamic Array Amortized Execution Time Analysis), 16 (Dynamic Array Stack), and 21 (Dynamic Array Bag). These worksheets will get you started on the implementations, but you will NOT turn them in. ​Do Not Worry about these, they are completed. Next, complete the dynamic array and...

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