要多线程,还是要多内存?

来源:互联网 发布:中国食品安全危害数据 编辑:程序博客网 时间:2024/05/15 12:40

在运行多线程程序时,内存的使用率突然暴涨?



Session.Run( MultiThread ){      A  a;      a.Procedure();  //deal with the image, need much much MEMORY!}


当瞬间同时开启n个线程的时候, 内存会被用尽,然后程序会闪崩!


WINDOWS



LINUX

top








原创粉丝点击