Is there a .Net equivalent to java.util.concurrent.Executor?

后端 未结 5 2249
轻奢々
轻奢々 2021-02-20 01:35

Have a long running set of discrete tasks: parsing 10s of thousands of lines from a text file, hydrating into objects, manipulating, and persisting.

If I were implement

5条回答
  •  情深已故
    2021-02-20 01:59

    Maybe this is related: Design: Task Parallel Library explored. See 10-4 Episode 6: Parallel Extensions as a quick intro.

    For older thread-based approach, there's ThreadPool for pooling.

提交回复
热议问题