只有两个线程在工作...如何同时运行10个线程? [英] Only two threads are working... how to run 10 threads in the same time?

查看:85
本文介绍了只有两个线程在工作...如何同时运行10个线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,


推荐答案

答案就在于Download方法的实现.我们只能猜测:

1)有些线程中的下载方法已经完成,然后才有机会查看它.
2)与#1相同,但是该线程遇到异常,导致其过早终止
The answer lies in the implementation of the Download method. We can only make guesses:

1) The download method is finishing in some threads before you get a chance to look at it.
2) Same as #1 but the thread is encountering an exception which is causing it to terminate prematurely


这篇关于只有两个线程在工作...如何同时运行10个线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆