multithreading

Discussion in 'ASP .Net' started by Keith Henderson, Oct 13, 2004.

  1. does multithreading work the same way in ASP.NET as it does in winforms? Or
    do you have to work with it differently?

    Keith O. H.
     
    Keith Henderson, Oct 13, 2004
    #1
    1. Advertising

  2. Keith Henderson

    Patrice Guest

    More specifically ?

    Keep in mind that anyway WebForms and WinForms ARE different. In particular
    a webform is rendered as an HTML page that can't be changed from the server
    once sent to the client.

    Patrice

    --

    "Keith Henderson" <> a écrit dans le
    message de news:...
    > does multithreading work the same way in ASP.NET as it does in winforms?

    Or
    > do you have to work with it differently?
    >
    > Keith O. H.
    >
    >
     
    Patrice, Oct 13, 2004
    #2
    1. Advertising

  3. This topic was discussed recently in the thread "Looking for advise:
    Multithreaded http requests". Google newsgroups for it.

    Eliyahu

    "Keith Henderson" <> wrote in message
    news:...
    > does multithreading work the same way in ASP.NET as it does in winforms?

    Or
    > do you have to work with it differently?
    >
    > Keith O. H.
    >
    >
     
    Eliyahu Goldin, Oct 13, 2004
    #3
  4. Yes and no.

    Technically, yes. It works exactly the same way. However, in practice, it
    isn't possible to do the same things in a client-server web app that you can
    do in an executable. The reason? HTTP is stateless. Therefore, the
    architecture of a web application is designed in such a way that objects
    have a very short lifetime, the time between an HTTP request is received
    until the time the Response is sent. There are some persistent objects, such
    as Session and Application, and threading can been used in such objects
    successfully. There are some very few situations where threading can be
    useful in other ways, in an ASP.Net app. If you're familiar with ASP.Net and
    the environment it works in, and with threading, it may come in handy at
    some point.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    I get paid good money to
    solve puzzles for a living

    "Keith Henderson" <> wrote in message
    news:...
    > does multithreading work the same way in ASP.NET as it does in winforms?

    Or
    > do you have to work with it differently?
    >
    > Keith O. H.
    >
    >
     
    Kevin Spencer, Oct 13, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Boris Condarco

    Multithreading

    Boris Condarco, Jun 28, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    603
    Boris Condarco
    Jun 30, 2003
  2. Ilia
    Replies:
    6
    Views:
    3,005
    John Saunders
    Nov 4, 2003
  3. Fieldadvice

    Multithreading with HttpWebRequest

    Fieldadvice, Nov 6, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    1,340
  4. Muralidharan Ramakrishnan

    MultiThreading

    Muralidharan Ramakrishnan, Nov 10, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    413
    Kevin Spencer
    Nov 10, 2003
  5. BoomWackaBoom

    Asynchronous requests vs. multithreading

    BoomWackaBoom, Nov 14, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    635
    Alvin Bruney
    Nov 15, 2003
Loading...

Share This Page