There is a code:
Thread newClient = new Thread(StartProcessing); newClient.IsBackground = true; newClient.Start();
It executes a function. The stream can be given a name - client number.
How to get the name of the current thread inside the StartProcessing
function?
newClient.Start()
you need to addnewClient.Name = "имя";
- see my answer below. - Stack