In one of the multithreaded Linux application, the application quits without deleting the thread. Will this cause any thread resource leakage. If this application is launched many times during the course of the day, will the system crash?
In one of the multithreaded Linux application, the application quits without deleting the thread.
Share
The kernel generally cleans up a process’s resources (open files, threads, allocated memory, etc.) when it exits, so I don’t think you need to worry. Although it could be stylistically better to delete the thread explicitly, possibly depending on your preferred coding style.