473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

multithreading

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.
Nov 18 '05 #1
3 1252
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" <kh********@projectresources.nospam.com> a écrit dans le
message de news:uZ**************@TK2MSFTNGP10.phx.gbl...
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.

Nov 18 '05 #2
This topic was discussed recently in the thread "Looking for advise:
Multithreaded http requests". Google newsgroups for it.

Eliyahu

"Keith Henderson" <kh********@projectresources.nospam.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
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.

Nov 18 '05 #3
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" <kh********@projectresources.nospam.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
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.

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dixp | last post by:
I'm new to writing multithreaded apps and I have a design question. I have a winforms app and a class which has a method that does processing which is time intensive. I want the user to be able...
47
by: mihai | last post by:
What does the standard say about those two? Is any assurance that the use of STL is thread safe? Have a nice day, Mihai.
16
by: Robert Zurer | last post by:
Can anyone suggest the best book or part of a book on this subject. I'm looking for an in-depth treatment with examples in C# TIA Robert Zurer robert@zurer.com
5
by: sarge | last post by:
I would like to know how to perform simple multithreading. I had created a simple form to test out if I was multithreading properly, but got buggy results. Sometime the whole thig would lock up...
9
by: tommy | last post by:
hi, i have found a example for multithreading and asp.net http://www.fawcette.com/vsm/2002_11/magazine/features/chester/ i want to speed up my website ... if my website is starting, they...
2
by: Rich | last post by:
Hello, I have set up a multithreading routine in a Test VB.net proj, and it appears to be working OK in debug mode and I am not using synchronization. Multithreading is a new thing for me, and...
55
by: Sam | last post by:
Hi, I have a serious issue using multithreading. A sample application showing my issue can be downloaded here: http://graphicsxp.free.fr/WindowsApplication11.zip The problem is that I need to...
5
by: sandy82 | last post by:
Whats actuallly multithreading is ... and how threading and multithreading differ . Can any1 guide how multithreading is used on the Web .. i mean a practical scenario in which u use...
2
by: Pradnya Patil | last post by:
hi , I am trying to draw ' html div-tag ' on the screen which will resemble a rectangle through vb.net code. I want it to be drawn faster...so I introduced multithreading using Threadpool. I...
7
by: Ray | last post by:
Hello, Greetings! I'm looking for a solid C++ multithreading book. Can you recommend one? I don't think I've seen a multithreading C++ book that everybody thinks is good (like Effective C++ or...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.