根据楼主的描述,10个线程做的都是同一件事,那么请采用一个线程,线程间的切换也是有开销的,
补充,退出进程之前把hEvt和hSep closehandle一下
[quote=引用 4 楼 luciferisnotsatan 的回复:] lz难道是当1个线程退出后,就掉TerminateThread 强杀其他线程?这么做太危险了吧。
[quote=引用 9 楼 luciferisnotsatan 的回复:] [quote=引用 5 楼 dale999 的回复:] [quote=引用 4 楼 luciferisnotsatan 的回复:] lz难道是当1个线程退出后,就掉TerminateThread 强杀其他线程?这么做太危险了吧。
[quote=引用 25 楼 luciferisnotsatan 的回复:] [quote=引用 23 楼 dale999 的回复:] [quote=引用 21 楼 luciferisnotsatan 的回复:] [quote=引用 19 楼 dale999 的回复:] [quote=引用 15 楼 luciferisnotsatan 的回复:] [quote=引用 11 楼 dale999 的回复:] [quote=引用 7 楼 luciferisnotsatan 的回复:] [quote=引用 5 楼 dale999 的回复:] [quote=引用 4 楼 luciferisnotsatan 的回复:] lz难道是当1个线程退出后,就掉TerminateThread 强杀其他线程?这么做太危险了吧。
64,654
社区成员
250,484
社区内容
加载中
试试用AI创作助手写篇文章吧