how to set up threaded pool and concurrency control algorithm RRS feed

  • Question

  • we have developed survey tool based on typical three tier architecture using asp.net c# 4.0. I  want to setup threaded pool and concurrency control since the survey is going to hit by 5k concurrent users. Please advise .
    Friday, March 29, 2013 6:50 AM


  • I have got one solution ....by implementing "USING"  the .Net framework 4.0 automatically  queues the calls and create / destroy objects .Concurrency control algorithm is supported in latest .Net framework 4.0 which automatically decide how many work items can be run concurrently in an efficient manner.

    Sample code


    using (SqlConnection connection = new SqlConnection(conString))






                using (SqlCommand command = new SqlCommand(

                   "SELECT TOP 3 * FROM Dogs1 ORDER BY Weight",


    • Marked as answer by Mahesh Dare Thursday, April 4, 2013 5:50 AM
    Friday, March 29, 2013 12:59 PM