Free memory after a process is terminated
When a process switches to the status STATUS_TERMINATED
, the instructions remain currently in memory for debugging purposes.
After in-depth debugging is concluded, a memfree()
instruction must be added either to run()
or the scheduler methods in order to free the corresponding memory cells.