简体   繁体   English

您如何确定程序可用的主内存大小?

[英]How do you determine the size of main memory available to a program?

I'm studying topics related to virtual memory and memory allocation, but I don't really understand how to know the available memory for a process. 我正在研究与虚拟内存和内存分配有关的主题,但是我并不太了解如何知道进程的可用内存。 How do I determine the amount available; 我如何确定可用数量; and secondly, is this determined by your operating system's kernel or is there a more architectural reason? 其次,这是由您的操作系统的内核确定的还是还有更多的体系结构原因?

Memory allocated to a process is entirely dependent upon the operating environment, system, architecture, and perhaps even the underlying hardware. 分配给进程的内存完全取决于操作环境,系统,体系结构,甚至可能取决于底层硬件。 Even the literal detail definition of a process is often dependent upon those elements. 甚至一个过程的字面详细定义通常也取决于那些元素。 As a result, there's simply no universal answer to the question. 结果,根本就没有这个问题的普遍答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM