Here's two line for the thread pool with the same.
System.Threading.ThreadPool.QueueUserWorkItem(new WaitCallback(ProcessDataThread), recBuffer);//sentence 1
new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(ProcessDataThread)).Start(recBuffer);//sentence 2
...
//instead of using following sentence;
//Thread thread = new Thread(new ThreadStart(ProcessDataThread));
//thread.Start(recBuffer);
private void ProcessDataThread(byte[] recBuffer) //single thread
{
}
When you use Mutithreading encoding you project,be aware of the competition between the threads