本文介绍了关于线程和.Net中线程的考虑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
实际上我有1000个独立的进程可以独立执行。每个过程需要2到3分钟才能完成。我想在Thread模式下执行所有进程。我的问题是我可以使用多少线程。换句话说,我怎样才能计算出no的最佳组合。线程和内存管理在最短的时间内执行所有这1000个进程?
Actually I got some 1000 individual processes to be executed independently. Each process will take 2 to 3 mins to complete. I want to execute all the process in Thread mode. My question is how many Threads can I use. In other words, how can I compute an optimum combination of no. of Threads and memory management to execute all these 1000 processes in a minimal time?
推荐答案
这篇关于关于线程和.Net中线程的考虑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!