我用我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