You must Sign In to post a response.
  • Category: .NET

    How to write parallel programming in c#

    I have a batch list , I want to process only 5 at a time by creating 5 threads.
    Until the 5 thread processing completes it should not take other batch.
    How to achieve this ? Can we make use of async and await methods or any other ideas to accomplish this multi-threading concept.
  • #765670
    The best way to handle this is to only create maxDownloads number of threads. Put all of your work items into a queue and let the threads compete with each other to figure out which one processes each work item.
    I think you need to go through the below link

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

Sign In to post your comments