Exactly what is PLINQ?

后端 未结 5 605
遇见更好的自我
遇见更好的自我 2020-12-24 01:23

PLINQ was added in the .NET 4.0 Framework as an extension to LINQ.

  • What is it?
  • What problems does it solve?
  • When is it appropriate and when n
5条回答
  •  孤独总比滥情好
    2020-12-24 02:16

    From Wikipedia's Parallel Extensions:

    Parallel LINQ (PLINQ) is a concurrent query execution engine for LINQ, parallelizing the execution of queries on objects (LINQ to Objects) and XML data (LINQ to XML). PLINQ is intended for exposing data parallelism by use of queries. Any computation on objects that has been implemented as queries can be parallelized by PLINQ. However, the objects need to implement the IParallelEnumerable interface, which is defined by PLINQ itself. Internally it uses TPL for execution.

提交回复
热议问题