淘客熙熙

主题:【求助】:请教信息技术方面的大牛有关多线程的问题 -- newtime

共:💬51 🌺45 新:
全看分页树展 · 主题 跟帖
家园 Computer Science 101

A light weight process, ie, the thread, must do substantial chunk of work to gain sufficient efficiency. In your case, I highly suspect it's because the threads are not doing enough work, so your CPU spends most of the time creating and destroying the threads instead of doing calculation, the real work.

全看分页树展 · 主题 跟帖


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河