C#多线程最简用法
头文件:
using System.Threading;
成员函数:
public Thread m_SendObdThread;
初始化:
m_SendObdThread = new Thread(SendObdThreadFunction);
m_SendObdThread.Start();
多线程函数:
public void SendObdThreadFunction()
{
while (true)
{
// SendObdFrame("");
System.Threading.Thread.Sleep(1000);
}
}