What may happen if I don't destroy a semaphore? [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . If I do not use sem_destroy at the last of my programs, what implications it may cause? Can some serious problems occur? 回答1: It is operating system specific. On Linux, read sem_overview(7); actually you are in an unspecified case. However, the documentation says Before being used