gpt4 book ai didi

ram - 限制 CPP 应用程序的 RAM 使用

转载 作者:行者123 更新时间:2023-12-04 03:33:31 26 4
gpt4 key购买 nike

我有 3 GB 内存。有没有办法只为 C++ 应用程序分配 512MB 的 RAM?

否则

有没有办法暂时将我的 RAM 减少到 512MB 以进行测试?

谢谢,阿肖克

最佳答案

使用SetProcessWorkingSetSize()

Sets the minimum and maximum working set sizes for the specified process.

关于ram - 限制 CPP 应用程序的 RAM 使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5189256/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com