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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:31:05+00:00 2026-06-07T06:31:05+00:00

I have 3-4 related questions regarding this. If Line Number X is using synchronous

  • 0

I have 3-4 related questions regarding this.

  1. If Line Number X is using synchronous upload method then:-

    a. How will the another request from the same user(same session) will be served for:-

    • An action method different from the _UploadStatement? – Will it be queued or served simultaneously?

    • The same action method i.e. _UploadStatement? – Will it be put into a queue or served simultaneously?

    b. How will the another request from a different user(different session) will be served for:-

    • An action method different from the _UploadStatement? – Will it be queued or served simultaneously?

    • The same action method i.e. _UploadStatement? – Will it be put into a queue or served simultaneously?

If they are put into a queue, then that means the next user will have to wait until the first user’s upload is finished?

public class AbcController : Controller  
{  
  public ActionResult A1()  
  {  
    return view();  
  }  

  public JsonResult _UploadStatement(HttpPostedFileBase UploadedStatement)  
  {  
    // Some web service uploading a lengthy file received to other server (say amazon s3 storage):-  
    // LINE NUMBER - X  
  }  
}
  • 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-07T06:31:07+00:00Added an answer on June 7, 2026 at 6:31 am

    These actions will happen in parallel. Each time IIS receives a new request, it creates a new controller, and executes that action on the new controller instance. However, each controller will execute the request using a different thread.

    Only if you had code like this would user B have to wait until user A finished his upload:

    public class AbcController : Controller  
    {  
      private static readonly object Lock = new object();
    
      public ActionResult A1()  
      {  
        return view();  
      }  
    
      public JsonResult _UploadStatement(HttpPostedFileBase UploadedStatement)  
      {  
        lock (Lock) 
        {
            // Some web service uploading a lengthy file received to other server (say amazon s3 storage):-  
            // LINE NUMBER - X  
        }
      }  
    }
    

    Such a lock will tell the thread “hey, only one of us is allowed to execute this method at a time. Right now I have the method locked and you have to wait until I am done. When I finish I will give the lock to you, and then you can execute the method, making others wait for you to finish.”

    The action method doesn’t know or care who the request originated from. If user A submitted 3 uploads, IIS would execute them all in parallel, using different threads. However it may not return results in the same order in which they were requested. For example the 2nd request may finish first, then the third, and finally the first.

    What can happen though is thread starvation. Say you have 50 users each uploading 3 files at the same time. That means that at least 150 threads will be taken from the pool, which may cause other parts of your application to respond more slowly. You can look into extending from the AsyncController to help with thread starvation scenarios on tasks that are heavily I/O bound or otherwise latent because of thread blocking.

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

Sidebar

Related Questions

I have 3 questions regarding using Groovy in java. They are all related together
This question is related to database/RDBMS where i have little knowledge regarding performance and
I have Used Dojo 1.0, but I have some version related questions: When will
I have two questions related to the performance of Dozer using its Java API:
I have seen other questions on here related to this, but I have their
There have been several questions on SO regarding getting Contacts numbers using the Contacts
I have been looking around the current options (and related SO questions) regarding PHP
I have a group of related questions regarding FFTW and audio analysis on Linux.
I have two related questions one general and one specific to the project I'm
I have seen some related questions but none focusing on the specific problem I

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.