multithreading

K

Keith Henderson

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.
 
P

Patrice

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
 
E

Eliyahu Goldin

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

Eliyahu
 
K

Kevin Spencer

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top