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

  • Home
  • SEARCH
  • 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 9201165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:56:24+00:00 2026-06-17T22:56:24+00:00

I read about Async and Await Keywords in C# 5.0, which allows parallel tasks

  • 0

I read about Async and Await Keywords in C# 5.0, which allows parallel tasks to be executed at the same time. (this is what i understood).

Is this practice useful for web applications?

Here, we have AJAX methods which allows tasks to be executed without blocking the UI (the browser).

Should they be used only for asynchronous web services?

Can you give me an example of why/howto use async/await keywords in a web applications? (to take advantage of this features)

  • 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-17T22:56:26+00:00Added an answer on June 17, 2026 at 10:56 pm

    Perhaps the best example i can think of is calling a series of web service methods from your Asynchronous Action method. For example:

    Lets say you have two methods defined in your web service, Method1 and Method2. If each method takes 1 second, calling both of them synchronously would take 2 seconds, however calling them in a async fashion would take less time.

     using (DataClient proxy = new DataClient())
                {
                    Task<Object> data1= proxy.Method1();
                    Task<Object> data2 = proxy.Method2();
    
                    await Task.WhenAll(new Task[] { data1, data2 });
    
                   //Completed
               }
    

    From MSDN:

    The AsyncController class enables you to write asynchronous action methods. You can use asynchronous action methods for long-running, non-CPU bound requests. This avoids blocking the Web server from performing work while the request is being processed. A typical use for the AsyncController class is long-running Web service calls.

    Link: http://msdn.microsoft.com/en-us/library/ee728598(v=VS.98).aspx

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

Sidebar

Related Questions

Read about the issue in this stackoverflow question . Still have the same issue
the new async/await keywords in C# 5 look very promising but I read an
I have read a lot about async/await being implemented (internally) as a state machine,
Another networking question this time related to an Async Socket Client which is based
I read about many CSS related languages and tools which need ruby. What is
I've read and read on SO about this, and I just can't seem to
I've read some articles about async IO. But I don't understand the difference between
I read some questions about this topic here at stackoverflow but none of them
I'm trying to learn about Async programming using VS2012 and its Async Await keyword.
I read many question about that and tutorials, but the only one executed, and

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.