473,386 Members | 1,832 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,386 software developers and data experts.

multithread in an application WEB? ??


Hi friends,
So that you would use multithread in an application WEB?

Thanks

Cesar
Jun 15 '07 #1
7 1221
ya,
"AAAAA" <AA***@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>
Hi friends,
So that you would use multithread in an application WEB?

Thanks

Cesar

Jun 15 '07 #2

All web applications are multithreaded by default (each aspx request
is handled by any of a large number of worker threads).

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
On Thu, 14 Jun 2007 23:19:21 -0500, "AAAAA" <AA***@hotmail.comwrote:
>
Hi friends,
So that you would use multithread in an application WEB?

Thanks

Cesar
Jun 15 '07 #3
Samuel R. Neff <sa********@nomail.comwrote in
news:6i********************************@4ax.com:
All web applications are multithreaded by default (each aspx request
is handled by any of a large number of worker threads).
But is it correct to say that my aspx/code-behind class is instantiated
anew on each request to it?

Or is it at least guaranteed that the instance of my class won't receive a
second request while it is processing the first request?

Or can I risk that there is only the one instance of my class, and it can
receive a second request while it is still processing the first request?
/Peter
Jun 15 '07 #4
* Peter K wrote, On 15-6-2007 10:24:
Samuel R. Neff <sa********@nomail.comwrote in
news:6i********************************@4ax.com:
>All web applications are multithreaded by default (each aspx request
is handled by any of a large number of worker threads).

But is it correct to say that my aspx/code-behind class is instantiated
anew on each request to it?

Or is it at least guaranteed that the instance of my class won't receive a
second request while it is processing the first request?

Or can I risk that there is only the one instance of my class, and it can
receive a second request while it is still processing the first request?
/Peter
A new instance is used for each request. There can be more than one
request to the same page being handled at the same time, so there can be
multiple instances (so avoid the use of static properties & fields).

Jesse
Jun 15 '07 #5
"Jesse Houwing" <je***********@nospam-sogeti.nlwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
A new instance is used for each request. There can be more than one
request to the same page being handled at the same time, so there can be
multiple instances (so avoid the use of static properties & fields).
Unless you use the appropriate locking on your critical regions.
Static properties & fields can be very usefull.

Kind Regards,
Allan Ebdrup
Jun 15 '07 #6
Hi,

"Peter K" <xd****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Samuel R. Neff <sa********@nomail.comwrote in
news:6i********************************@4ax.com:
>All web applications are multithreaded by default (each aspx request
is handled by any of a large number of worker threads).

But is it correct to say that my aspx/code-behind class is instantiated
anew on each request to it?
Yes, that's correct each time a new instance is created and the controls's
values populated based on the state being returned by the page.
Or is it at least guaranteed that the instance of my class won't receive a
second request while it is processing the first request?
Each request will have its own individual instance
Jun 15 '07 #7
* Allan Ebdrup wrote, On 15-6-2007 13:53:
"Jesse Houwing" <je***********@nospam-sogeti.nlwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>A new instance is used for each request. There can be more than one
request to the same page being handled at the same time, so there can be
multiple instances (so avoid the use of static properties & fields).

Unless you use the appropriate locking on your critical regions.
Static properties & fields can be very usefull.
Agreed. But only if you know what you're doing.
Jun 15 '07 #8

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

Similar topics

0
by: Alice | last post by:
Hello I have four multithread windows applications(vb.net) interacting and running on the same machine(windows 2000 with .net framework 1.0). All of them start a new thread each time Filewatcher's...
0
by: r_obert | last post by:
Hello, I'm trying to create a worker thread for my VC++ program, and was wondering whether I should be linking with the Multithread /MT or Multithread DLL /MD option? I'm not quite sure, in...
4
by: zbcong | last post by:
Hello: I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting for a...
2
by: zhebincong | last post by:
Hello: I write a multithread c# socket server,it is a winform application,there is a richtextbox control and button,when the button is click,the server begin to listen the socket port,waiting...
0
by: fred | last post by:
I need some help in trying to understand how to make myCollection (inherited from CollectionBase) multithread safe. Taking my implementation of the Add Sub and a readonly property Item. Public...
4
by: amberti | last post by:
I'm trying to write a multithread application: it will get different kind of data from DB, my intention was to create different thread for each query. I tryed to use the...
6
by: jmartin | last post by:
Hi, I have made a multithread version of a program (load a file into database), and with two processors I get the double of time in the multithread than in the process (unithread) version. I...
0
by: Gordon Cone | last post by:
I am currently debugging a deadlock in a multithread C# application. It makes lots of calls to legacy unmanaged code. The application runs on windows sever 2003 and uses the sever version of the...
0
by: Gordon Cone | last post by:
I am currently debugging a deadlock in a multithread C# application. It makes lots of calls to legacy unmanaged code. The application runs on windows sever 2003 and uses the sever version of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.