我用我application.I多线程的概念正在使用下面的代码状态的线程
Dim threadHistory As Thread = Nothing
For Each dRow As DataRow In sqlDS.Tables(0).Rows
GetPropertyBidHistory(dRow("ID"))
threadHistory = New Threading.Thread(AddressOf GetRowHistory)
threadHistory.Name = "Row" + dRow("ID")
threadHistory.Start(dRow("ID"))
threadHistory.Join()
Next
Public Sub GetRowHistory(ByVal ID As String)
'1 min code from web srvice
End Sub
如果我有10个编号的,我怎么能知道所有10个线程是否完成或没有。
做什么你的意思是id's'' ManagedThreadId'? –
我想他是在谈论10个不同的数据库ID –
其唯一的ID为:1000至1010 – Sree