多线程程序,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())