0
我是新來的C#進入文本框,我想做某事像這樣:等待,直到用戶按另一種形式和返回值
myList = list of 1000+ string values;
1.StartNewThreads(50); //50 is the numbers of new threads
2.DoSth1(next value from myList);
3.DoSth2();
4. var value = {
ShowNewImageForm(); //show only if not another ImageForm is displayed if another is show - wait
WaitUntilUserPressEnterInTextBox();
ReturnValueFormTextbox();
}
5.DoSth3();
6.StartNewThread();
現在我有:
foreach(String s in myList) {
DoSth1(s);
DoSth2();
DoSth3();
}
現在我正在尋找想法點1,3,6你可以建議我如何解決這個問題?
- 如何啓動50個線程
- 如何從文本中獲得價值的另一種形式,當用戶按回車
這很混亂。你想把你的循環分成50個線程嗎?線程應該做什麼? – Mario 2011-03-01 15:19:35
如果你不得不問如何開始50個線程,你不想這樣做。 – Justin 2011-03-01 15:27:21
你爲什麼要50個線程?他們應該做的究竟是什麼? – Ian 2011-03-01 15:28:59