Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7898947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:34:25+00:00 2026-06-03T08:34:25+00:00

I read that .NET C# has task and data parallelism built in. If I

  • 0

I read that .NET C# has task and data parallelism built in. If I run a for/foreach loop in my program in a computer that has 4 cores (4 windows the Windows Task Manager), will the loop be evenly distributed into the 4 cores? If not, why isn’t the for/foreach loop doesn’t run in 4 cores parallel in default?

Generally speaking, is parallelism better than conventional programming? Does the benefits outweigh the drawbacks? I’m doing a lot of data processing (bunch of pulls, for/foreach loops) and need to complete these for/foreach loops faster.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:34:27+00:00Added an answer on June 3, 2026 at 8:34 am

    it’s not running on 4 cores because it is not efficent or needed every time.

    it’s depending on your program and the load of your program. it’s not efficent to parallelize a function that did not take 1ms/cycle. if you do a lot of long running calcuations or searches over a big field of data that can be splitted up sensible you could / should parallelize your loops.

    for that topic i recommend reading http://www.amazon.com/Multi-Core-Programming-Increasing-Performance-Multi-threading/dp/0976483246/ref=sr_1_fkmr0_2?ie=UTF8&qid=1336440123&sr=8-2-fkmr0

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having read this page , I can't believe that VB.Net has such a terrible
I have an ASP.NET website that I built that has grown considerably in size
I read that .NET uses connection pooling. For example, if I instantiate a bunch
I read that with .NET Framework 4 the current garbage collection implementation is replaced:
Sorry if the question is dumb. Somewhere I read that ASP.NET supports three types
i was only able to read up that ASP.NET detects changes to specific files
I have read that viewstate is not there in asp.net MVC application. I am
I have read that TempData is backed by session in Asp.Net MVC, but only
I am working with WCF .NET 3.5 SP1 and have read that one does
Everything that I read about sockets in .NET says that the asynchronous pattern gives

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.