Parallel FX and the number of cores

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Harrop

    Parallel FX and the number of cores


    I'd like to measure performance results as a function of the number of cores
    by restricting parallel FX to using only a subset of my cores. Is this
    possible and, if so, how?

    --
    Dr Jon D Harrop, Flying Frog Consultancy
    Business Das perfekte Beratungsgespräch: Tipps und Tricks Sabine Henschel4. Juli 2024 Business Mindset Coach: Ihr Schlüssel zu einem neuen Denken Sabine Henschel4. Juli 2024 Familie Kollegiale Beratung in der Pflege: Zusammen stark Sabine Henschel3. Juli 2024 Familie Was kostet eine Beratung beim Notar wegen Erbrecht: Ein Ratgeber Sabine Henschel2. Juli 2024 Business Was kostet eine

  • Jon Skeet [C# MVP]

    #2
    Re: Parallel FX and the number of cores

    Jon Harrop <jon@ffconsulta ncy.comwrote:
    I'd like to measure performance results as a function of the number of cores
    by restricting parallel FX to using only a subset of my cores. Is this
    possible and, if so, how?
    Certainly with PLINQ - the call to AsParallel optionally takes the
    number of threads to use.

    For things like Parallel.For you can specify a TaskManager and
    TaskCreationOpt ions to use. I don't have time to look them up now, but
    I strongly suspect they will have options for how many threads to use.

    --
    Jon Skeet - <skeet@pobox.co m>
    Web site: http://www.pobox.com/~skeet
    Blog: http://www.msmvps.com/jon.skeet
    C# in Depth: http://csharpindepth.com

    Comment

    Working...