I am experimenting with new System.Threading.Parallel methods such as parallel for and foreach.
They seem to work well, but I need a way to increase the number of concurrent threads running, which are 8 (I have a Quad core).
I know that there is a way that I can just find the place where you hid your damn property.
Gilad.
quote:
var query = from item in source.AsParallel().WithDegreeOfParallelism(10) where Compute(item) > 42 select item;
, , , File I/O, parallelism , .
from: MSDN
Parallel.For Parallel.ForEach, ParallelOptions, MaxDegreesOfParallelism. , , , . WithDegreeOfParallelism . .
Parallel.For
Parallel.ForEach
ParallelOptions
MaxDegreesOfParallelism
WithDegreeOfParallelism
- .
Source: https://habr.com/ru/post/1727058/More articles:check any content in php - postIs there a view for the button bar? (Link to the image describing the performance) - androidWhich Android control to use? - androidWhat third-party user interface libraries for WinForms, WPF, MVC, etc. Are the best? - asp.netWant to avoid the eval AND Function constructor - javascriptCatch IIS Level Error for Processing in ASP.NET - web-applicationsPartial use of Infix functions in F # - haskellAligning overlapping rectangles - user-interfaceSaving color when redirecting output from stdout and stderror in C # - c #The jQuery children of the cloned element do not respond to events - jqueryAll Articles