Question

In: Computer Science

32) Memory Allocation Failure Realistically, what are the chances of a new (or new[ ]) operation...

32) Memory Allocation Failure

Realistically, what are the chances of a new (or new[ ]) operation failing in a present-day operating environment? There are at least three possible scenarios to consider: workstation multi-user embedded

Solutions

Expert Solution

Workstation: It is very unlikely for the new operation to fail in a workstation. Workstations are supposed to handle a lot of tasks(hence higher memory requirements) but to ensure smooth operation we also make sure we have ample amount of main memory for that.

Multi-user: In case of multi user systems where multiple users can use a system parallely over a network, we would naturally have a higher main memory to handle parallel use, the likeliness for a memory allocation to fail would be dependent of the number of users using that system. Also note that in today's system with the help of paging we have a large virtual address space and memory allocation won't be a problem as pages can be swapped to disk to ensure correct operation.

Embedded: In case of embedded systems, a very small amount of main memory is present hence it is possible for a heap/dynamic memory allocation(using new) to fail. Another reason for having less memory is that the addressable memory is suually less in embeeded systems as embedded systems prefer memory mapped IO(data bus is faster in embedded systems and sometimes IO bus is not present) hence the addressable memory is lesser (on already smaller main memory).


Related Solutions

Memory organization: For a memory consisting of 32 modules, each with a capacity of 1M x...
Memory organization: For a memory consisting of 32 modules, each with a capacity of 1M x 8 bits (here a basic memory storage unit is a byte or 8 bits), how many bits are needed to represent each address that is uniquely associated with each basic storage unit? For this memory system, if high-order interleaving is used, what is the address structure (i.e., what bits are used to select the chip and what bits are used to identify the offset...
When it comes to dynamic memory allocation and delete[] pointer, what does it mean to say...
When it comes to dynamic memory allocation and delete[] pointer, what does it mean to say that, CRT detected that the application wrote to memory after end of heap buffer? I tried to duplicate the error by deleting the pointer address twice and it didn't produce the same error code so that's not it. What might cause this problem?
31. How is failure to thrive diagnosed? 32. What is the income eligibility for the WIC...
31. How is failure to thrive diagnosed? 32. What is the income eligibility for the WIC program? 33. What are the criteria to qualify for WIC? 34. What is the program designed for special needs children between 0-3 year old? 35. What is the definition of childhood obesity?
C++ Memory Allocation: 1) Write a C++ program that allocates static, stack, & heap memory. Your...
C++ Memory Allocation: 1) Write a C++ program that allocates static, stack, & heap memory. Your program does not need to do anything else.  Indicate via comments where memory for at least one variable in each memory area is allocated. a) Write code that allocates static memory (only include one declaration): b) Write code that allocates stack memory (only include one declaration): c) Write code that allocates heap memory (only include one declaration): 2) Edit the C++ program below to include...
1a. List one similarity and one difference between paged memory and demand paging memory allocation. Explain...
1a. List one similarity and one difference between paged memory and demand paging memory allocation. Explain two circumstances where one might be preferred over the other b. What are the fundamental differences between paging scheme and segmented memory allocation? List both advantages and disadvantages of each neatly using tables c. Which (3) tables are used by the memory manger to keep track of the segments in memory? Describe each table. 2a. Why are segmentation problem like, compaction and external fragmentation...
The time to failure for an electronic device is measured as with different operation temperatures and...
The time to failure for an electronic device is measured as with different operation temperatures and humidity levels. The following data is obtained. Is there a difference in mean life with different temperature and humidity? Is there an interaction between temperature and humidity? Complete the below table to support your conclusions. Temperature 290 K Temperature 320 K Temperature 360 K Humidity 50% 130, 155, 74, 180 34, 40, 80, 75 20, 70, 82, 58 Humidity 70% 150, 188, 159, 126...
Evaluate how implementing best practices would have reduced the chances for failure. Provide support for your...
Evaluate how implementing best practices would have reduced the chances for failure. Provide support for your rationale
A city is investigating the chances of getting public support for a new bill. In a...
A city is investigating the chances of getting public support for a new bill. In a survey of 1250 families, 400 families were in favor of the new bill. a. What is the point estimate for the population proportion in favor of the bill? b. Write a 95% confidence interval for the population proportion. (Use the t table to obtain the critical value and round to two decimal places). (  ,  ) c. Write a 90% confidence interval for the population proportion....
A city is investigating the chances of getting public support for a new bill. In a...
A city is investigating the chances of getting public support for a new bill. In a survey of 1250 families, 400 families were in favor of the new bill. a. What is the point estimate for the population proportion in favor of the bill? b. Write a 95% confidence interval for the population proportion. (Use the t table to obtain the critical value and round to two decimal places). (  ,  ) c. Write a 90% confidence interval for the population proportion....
What is memory unit and what are the basic units of memory measurements
What is memory unit and what are the basic units of memory measurements
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT