I use mac machine, and I have a curiosity the concept of mac's purge command.
When I do that command, it frees of the memory that some like garbages (Is it really right?)
I have learnt Virtual Memory concept on 'System programming' this semester, but I don't know how this purge really do.
So my question is
How to purge can distinguish still using allocated memory block and garbages?
Is there any small implement or same function in C?