Click here to Skip to main content
15,891,711 members
Everything / Plinq

Plinq

plinq

Great Reads

by JasonShort
How to speed up blocking functions with PLINQ
by JasonShort
Speed up blocking functions with PLINQ
by Ivan Krivyakov
PLinq and source IEnumerable thread safety
by Marc Clifton
A discussion of various approaches to threading, covering locks, mutexes, semaphores, concurrent collections, work queues, threads, PLINQ, TPL, exception handling, and cancellation tokens

Latest Articles

by Marc Clifton
A discussion of various approaches to threading, covering locks, mutexes, semaphores, concurrent collections, work queues, threads, PLINQ, TPL, exception handling, and cancellation tokens
by Ivan Krivyakov
PLinq and source IEnumerable thread safety
by JasonShort
Speed up blocking functions with PLINQ
by JasonShort
How to speed up blocking functions with PLINQ

All Articles

Sort by Score

Plinq 

4 Feb 2011 by JasonShort
How to speed up blocking functions with PLINQ
3 Jan 2012 by JasonShort
Speed up blocking functions with PLINQ
4 Mar 2018 by Jon McKee
var results = from myRow in dtTaskandBugs.AsParallel() select myRow; results.ForAll(r => { r["Storyid"] = GetStoryid(r["Id"]); r["FeatureID"] = Fidname(r["Storyid"]); r["FeatureName"] = r["FeatureID"].ToString() == "0" ? "Anonymous" : ...
7 Mar 2016 by Sascha Lefèvre
As long as you're only reading and not modifying values anything is thread safe.
7 Mar 2016 by Matt T Heffron
Sascha is correct about thread safety.However, if you are using the .AsParallel() to improve performance, you're going about it incorrectly!Since bg is a List, the .Contains() is a very poor way to check for membership in the list. It is O(n) (where n is bg.Length). So the overall...
26 Aug 2023 by Dave Kreskowiak
Use the second answer on the page, not the first one.
3 Sep 2012 by Ivan Krivyakov
PLinq and source IEnumerable thread safety
7 Aug 2015 by umesh_vn
i have made one wcf service Method which is consuming third party service methods(call methodA, methodB, methodC) and Here all three belongs to different services i.e. serviceA, serviceB, serviceC..each method accepting single input object for processing (not List of input object). but i...
8 Aug 2015 by Sergey Alexandrovich Kryukov
Please see my comment to the question. The most basic thing to understand is: there is no such thing as miracle. With threading, if a number of your CPU cores is less then total average number of, say, requested objects, your throughput won't grow. For further improvement of the throughput,...
7 Mar 2016 by MYQueries1
In the below below code UE is dictionary and bg is the list.I am using PLINQ to get the values from the dictionary and returning the list.Is the below code is thread safe?TIAWhat I have tried:t = UE.AsParallel().Where(x => bg.Contains(x.Key,...
28 Aug 2023 by Sonhospa
Hello, I've been struggling for hours now with the proper syntax (in VB) to use an extension method for the above goal which I found here. Whilst the method that contains the call runs without throwing errors, the ProgressBar isn't updated and I...
2 Aug 2018 by Marc Clifton
A discussion of various approaches to threading, covering locks, mutexes, semaphores, concurrent collections, work queues, threads, PLINQ, TPL, exception handling, and cancellation tokens
25 Feb 2010 by Alphakoda
PLINQ /Parallel LINQ is part of the TPL (Task Parallel Library) and it makes your life easier when it comes to multi-core processor programming which is totally different from multithreading which allows more than one thread per process and you have no idea if they will be equally distributed across
3 Mar 2018 by Akhil Jain
i have a Linq Query which is currently taking about 15 min to Run as it's calling 3 function Sequentially can this Query Performance be improve ? var results = from myRow in dtTaskandBugs.AsEnumerable() select myRow; results.ToList() ...