Now, we are going to make some changes to the code in order to identify the threads. We are going to give them names:
Form Loadevent and add the following code; we want to identify the UI thread:
// Give a name to identify the thread that creates the UI Thread.CurrentThread.Name = "UI Thread";
ThreadProcmethod, before the line,
loEncrypter.EncryptFile();. We want to identify each thread created by the
// Give the thread a name Thread.CurrentThread.Name = "ThreadPool: " + loEncrypter. psInputFileName;
Now, each thread ...