For the CP/M operating system: (a) How did a user start a program (click on a fi
ID: 3899512 • Letter: F
Question
For the CP/M operating system:
(a) How did a user start a program (click on a filename in a window, select the program from a list, something else - what)?
(b) How is memory managed?
(1) Where are programs placed in memory (High locations, low, can’t be placed)?
(2) There is very little memory, 1. how can dynamic (growing) data (not code) memory usage maximize the use of all memory?
2. Give one example of some type of data memory use that is dynamic.
3. How would a C program use that dynamic memory?
Explanation / Answer
3)Answer:
C dynamic memory allocation refers to performing manual memory management for dynamic memory allocation in the C programming language via a group offunctions in the C standard library, namely malloc, realloc, calloc and free
The C dynamic memory allocation functions are defined in stdlib.h
Function Description malloc allocates the specified number of bytes realloc increases or decreases the size of the specified block of memory. Reallocates it if needed calloc allocates the specified number of bytes and initializes them to zero free releases the specified block of memory back to the system