I have 3 GB RAM. Is there a way to allocate only 512MB of R开发者_StackOverflow中文版AM to a C++ application?
Else
Is there a way to reduce my RAM to 512MB for a while for testing purpose?
Thanks, Ashok
Use SetProcessWorkingSetSize()
Sets the minimum and maximum working set sizes for the specified process.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论