Edit hereAPP->OS: Need 1MB of memory
Note right of OS: Checks if there memory available\nand allocates if so
OS-->APP: Gives the pointer to 1MB
Note left of APP: Uses the memory pointer\nby the pointer...
APP->>OS: Asks memory to be freed
OS->OS: Mark the 1MB memory as unused
OS->APP: Memory is freed
OS-->OS: Mark the 1MB memory as freed
|
This should be a diagram! If you don't see it you need Javascript enabled |