Question

What are the issues/difficulties that will could be faced by users/programmers if the dynamic memory allocation...

What are the issues/difficulties that will could be faced by users/programmers if the dynamic memory allocation mechanizm woudn't exist

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

the various issues / difficulties that could be faced by users or programmers if the dynamic memory allocation mechanism would not exist are:-

1. size of memory can not shrink or grow during operation means it remain fixed . No memory variation during different state .

2 the allocation of variable is permanent means no concept of deallocation like free keyword in c and c++

3. No concept of memory optimization mean in there is chance of waste of memory

Add a comment
Know the answer?
Add Answer to:
What are the issues/difficulties that will could be faced by users/programmers if the dynamic memory 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
  • describe one common error in using dynamic memory allocation.

    describe one common error in using dynamic memory allocation.

  • 8. Draw a diagram of the CUDA device memory model for programmers for the allocation, movement, a...

    8. Draw a diagram of the CUDA device memory model for programmers for the allocation, movement, and usage of the various memory types of a device. Explain how CUDA API cudaMemcpy0 functions as data transfer between memories with all its arguments You have to create 6 blocks and every block should contain 8 threads. With the help of a block diagram show how you can create this using 2D Grid of 3D Block. Also mention blockId of each block and...

  • Q1 (25): What challenges will be faced by application programmers in the absence of an operating...

    Q1 (25): What challenges will be faced by application programmers in the absence of an operating system? How is the interrupt vector used during interrupt processing? Please read Sections 2, 3 and 4 from the following website and briefly summarize it. https://minnie.tuhs.org/CompArch/Lectures/week05.html Why do we store CPU state (program counter and registers) in process control block? Explain. Please read the following article and briefly summarize it. https://www.geeksforgeeks.org/memory-layout-of-c-program/

  • Q1 (25): What challenges will be faced by application programmers in the absence of an operating...

    Q1 (25): What challenges will be faced by application programmers in the absence of an operating system? How is the interrupt vector used during interrupt processing? Please read Sections 2, 3 and 4 from the following website and briefly summarize it. https://minnie.tuhs.org/CompArch/Lectures/week05.html Why do we store CPU state (program counter and registers) in process control block? Explain. Please read the following article and briefly summarize it. https://www.geeksforgeeks.org/memory-layout-of-c-program/

  • Introduction: One of the most important uses of pointers is for dynamic allocation of memory. In...

    Introduction: One of the most important uses of pointers is for dynamic allocation of memory. In C++ there are commands that let the user request a chunk of memory from the operating system, and use this memory to store data. There are also commands to return memory back to the O/S when the program is finished using the data. In this lab, we will explore some of the things that can go wrong when using dynamic memory and discuss how...

  • What are some of the difficulties faced by firms regarding the protection of trademarks? Include example,...

    What are some of the difficulties faced by firms regarding the protection of trademarks? Include example, please

  • What are some potential difficulties/challenges faced by collecting data on the contribution of drugs to the...

    What are some potential difficulties/challenges faced by collecting data on the contribution of drugs to the global burden of disease.

  • Memory Allocation a) Is it possible to have both internal and external fragmentation with fixed p...

    Memory Allocation a) Is it possible to have both internal and external fragmentation with fixed partition memory allocation? How about with dynamic/variable memory partition allocation? Explain. (1 point) b) Suppose we have 1000K of memory where the first 100K is reserved. Also suppose that the following processes have been allocated memory in the following order:                 P1: 100K, P2: 100K, P3: 25K, P4: 200K, P5: 200K, P6: 75K, P7: 100K. Create a diagram of memory. Suppose that P2, P4, and P6...

  • Memory Allocation a) Is it possible to have both internal and external fragmentation with fixed partition...

    Memory Allocation a) Is it possible to have both internal and external fragmentation with fixed partition memory allocation? How about with dynamic/variable memory partition allocation? Explain. (1 point) b) Suppose we have 1000K of memory where the first 100K is reserved. Also suppose that the following processes have been allocated memory in the following order:                 P1: 100K, P2: 100K, P3: 25K, P4: 200K, P5: 200K, P6: 75K, P7: 100K. Create a diagram of memory. Suppose that P2, P4, and...

  • 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...

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