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 7173227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:46:48+00:00 2026-05-28T15:46:48+00:00

I am trying to have a parallel functionality in my asp.net mvc 2 application.

  • 0

I am trying to have a parallel functionality in my asp.net mvc 2 application. I have loaded a list of ip address in a table format in my view. And I want to see if they are pingable. So I fire up GetStatus(string ip) action on controller for every ip address with the help of jQuery.ajax(). I can see in firebug that all requests has been fired up. But on the server side in log4net logs I can see those requests are executed in sequential manner.

So I have 2 questions here

  • Are asp.net mvc actions are single user? meaning what if one action is called by multiple users, will that particular action will execute one-by-one for each user and not on separate (magical) thread created by asp.net or IIS?

  • What should be my approach to make it parallel, as ping is a network operation.

I work on asp.net but this aspect seems new to me. Any resources specific in this context are most welcome.

Edit: I am working on Asp.Net MVC 2

  • 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-05-28T15:46:50+00:00Added an answer on May 28, 2026 at 3:46 pm

    This will happen if you use sessions in your actions. Since sessions are not thread safe ASP.NET serializes access to them. So if you have 2 parallel requests for the same action from the same session (which is the case with AJAX requests) and if this action writes to the ASP.NET session, those 2 requests will be queued and executed sequentially.

    If you disable the session in your web.config (<sessionState mode="Off" />) or you disable it for the given controller, requests will no longer be processed sequentially but in parallel. Of course this means that this controller should either not use the session at all or only use it for read-only. See the [SessionState] attribute:

    [SessionState(SessionStateBehavior.ReadOnly)]
    public class HomeController: Controller
    {
        // actions in this controller can be processed in parallel
        // for requests from the same session
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to merge two list in parallel. I have two sorted lists
I am trying to have a table header, in a seperate div stay in
I'm developing an application (winforms C# .NET 4.0) where I access a lookup functionality
I have a .net application which runs in the region of 20 to 30
I'm trying to write dynamic method that calls Parallel.ForEach. I have checked a IL
I have a little sample application I was working on trying to get some
So I have this small application of mine I'm trying to deploy using visual
I have a long list of words and I am trying to print the
I'm trying to use the Task-Parallel-Library to offload expensive ADO.NET database access from the
I'm trying to run tests in parallel using nose. I have setup a nose.cfg

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.