When a program with some theards, mutexes, shared data, file handles crash because of too much memory allocation, which all resources are freed. How do you recover?
When a program with some theards, mutexes, shared data, file handles crash because of
Share
If you mean, how do you go back and free up the resources that were allocated by the now-crashed process, well, you don’t have to.
When the process exit(2)’s or dies by a signal all of the OS-allocated resources will be retrieved. This is the kernel’s job.