多線程程序,top發現virt一直增長
1次 7-8m的速度增長
請檢查你的 pthread_create() 它可能就是元兇
解決方案:
1、線程常駐,並通過IPC管理起來
2、繼續創建,但要pthread_detach(pthread_self())
多線程程序,top發現virt一直增長
1次 7-8m的速度增長
請檢查你的 pthread_create() 它可能就是元兇
解決方案:
1、線程常駐,並通過IPC管理起來
2、繼續創建,但要pthread_detach(pthread_self())