After FileSystemWatcher fires - Thread Pool or Dedicated thread?

后端 未结 3 534
耶瑟儿~
耶瑟儿~ 2021-01-19 02:20

I am about to implement the archetypal FileSystemWatcher solution. I have a directory to monitor for file creations, and the task of sucking up created files and inserting

3条回答
  •  醉酒成梦
    2021-01-19 03:18

    If you know that the second thread will always be required, and you also know that you'll never need more than one worker thread, then option three is good enough.

提交回复
热议问题