Does an Application memory leak cause an Operating System memory leak?
问题 When we say a program leaks memory, say a new without a delete in c++, does it really leak ? I mean, when the program ends, is that memory still allocated to some non-running program and can't be used, or does the OS know what memory was requested by each program, and release it when the program ends? If I run that program a lot of times, will I run out of memory? 回答1: On operating systems with protected memory (Mac OS 10+, all Unix-clones such as Linux, and NT-based Windows systems meaning