如何使用C#将可用物理内存设置为指定大小?

时间:2022-05-11 16:56:38

Is it possible to use C# to write a program which could expropriate designated size physical memory?

是否可以使用C#编写一个可能会占用指定大小的物理内存的程序?

2 个解决方案

#1


1  

Try to refer this question>

尝试引用这个问题>

Array size based on available physical memory

数组大小基于可用的物理内存

Here array is used based on available physical memory.

这里使用基于可用物理内存的数组。

Refer those answers. Might be helpful to you.

参考这些答案。可能对你有所帮助。

#2


2  

C# is not an appropriate language for low level memory manipulation.

C#不适合低级别的内存操作。

#1


1  

Try to refer this question>

尝试引用这个问题>

Array size based on available physical memory

数组大小基于可用的物理内存

Here array is used based on available physical memory.

这里使用基于可用物理内存的数组。

Refer those answers. Might be helpful to you.

参考这些答案。可能对你有所帮助。

#2


2  

C# is not an appropriate language for low level memory manipulation.

C#不适合低级别的内存操作。