我想用FileSystemWatcher并行处理文件打印任务,但是它只使用一个线程引发事件,这是正常的吗?
我正在运行带有.NET Core 4.8的VB.NET 2017
这是我获得的输出:
FileSystemWatcher Created thread 5 - file : E:\Dev\SandBox\EventTest\print\labels\PRINT_Y01-X15_000096.jpg
FileSystemWatcher : PRINT LABEL
FileSystemWatcher Created thread 4 - file : E:\Dev\SandBox\EventTest\print\labels\PRINT_Y01-X03_001167.jpg
FileSystemWatcher : PRINT LABEL
FileSystemWatcher Created thread 4 - file : E:\Dev\SandBox\EventTest\print\labels\PRINT_Y01-X04_000786.jpg
FileSystemWatcher : PRINT LABEL
FileSystemWatcher Created thread 4 - file : E:\Dev\SandBox\EventTest\print\labels\PRINT_Y01-X05_001142.jpg
FileSystemWatcher : PRINT LABEL
FileSystemWatcher Created thread 4 - file : E:\Dev\SandBox\EventTest\print\labels\PRINT_Y01-X06_001129.jpg
FileSystemWatcher : PRINT LABEL
FileSystemWatcher Created thread 4 - file : E:\Dev\SandBox\EventTest\print\labels\PRINT_Y01-X07_001171.jpg
FileSystemWatcher : PRINT LABEL
我希望它在第一个之后使用至少一个以上的线程...