5 ms·
Why downvoting? It may be not the best explanation, but IMO the closest to the way a "developer" should understand it. On Linux a virtual memory is committed wi
by ivan78 15y ago
Why downvoting?
It may be not the best explanation, but IMO the closest to the way a "developer" should understand it.
On Linux a virtual memory is committed with mmap call.
Check this for details:
http://stackoverflow.com/questions/2782628/any-way-to-reserve-but-not-commit-memory-in-linux http://stackoverflow.com/questions/2782628/any-way-to-reserv...
This is basically how shared libraries and other shared objects are attached to your process.
- henrikschroder 15y ago> Why downvoting? > you must read a book if you want to understand it. "Go read a book" is not a very constructive or helpful answer to a question that - as it turns out - could be answered with a brief comment.
- onemoreact 15y agoIt can be when a short description completely and accurately describes what's going on, but the person creating the comment needed to read a few books on the subject to actually understand both what's happening and why due to other issues. EX: How does virtual memory get mapped to L1 cache?
- ivan78 15y agoto henrikschroder: I expected that this reaction was caused by mentioning a book. It is my deepest belief that questions like memory management can not be answered with brief comment. You must read at least a basic book if you want to understand it in depth.