Dim wt As System.Threading.Thread Dim ts As System.Threading.ThreadStart ts = AddressOf Worker.DoWork wt = New System.Threading.Thread(ts) wt.Start() defrag.StartInfo.FileName = ...
The System.Threading.Channels namespace contains types that you can use to implement a producer-consumer scenario, which speeds up processing by allowing producers and consumers to perform their tasks ...