0
- 在下面有沒有可以想象的優勢或劣勢?
- 我應該比其他人更喜歡嗎?
要執行的方法。線程 - >使用和不使用ThreadStart的差異
private void _archiveData()
{
while(_isActive)
{
// Do stuff
}
}
使用ThreadStart
System.Threading.ThreadStart _archiveThreadStart = new System.Threading.ThreadStart(_archiveData);
System.Threading.Thread _archiveThread = new System.Threading.Thread(_archiveThreadStart);
_archiveThread.Start();
感謝
謝謝。這是一個簡短而好的解釋。乾杯! – junPac 2014-11-05 04:58:14