How can I make each disk processed in its stream?
Sub list_of_file() For Each drive In My.Computer.FileSystem.Drives If drive.DriveType = IO.DriveType.Fixed Then seach(drive.Name) End If Next End Sub So that each seach() in a new thread.
How can I make each disk processed in its stream?
Sub list_of_file() For Each drive In My.Computer.FileSystem.Drives If drive.DriveType = IO.DriveType.Fixed Then seach(drive.Name) End If Next End Sub So that each seach() in a new thread.
The easiest way to start is to put the necessary code in the method and call it in a separate thread.
ThreadPool.QueueUserWorkItem(AddressOf SomeMethod) Source: https://ru.stackoverflow.com/questions/107111/
All Articles