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

Multithreading

Hi,

I have to develop an application, whose main feature is: read data from
DataBase, do many calculations, then write back the results to the DataBase,
and finally show it to the user.

This calculations are based on different formula, so i was thinking to
develop a multithreaded Web Based application, in this order i have the
following questions:

Which aspects do i have to consider before, during and after the life cycle
of the program?

How many theads can be created simultaniusly on ASP.NET?

Is there any configuration file to improve the threads performace?

I would really appreacite any suggestions...!

Thanks in advance...

Boris

Nov 17 '05 #1
5 2297
ASP.NET will handle all of your threading for you. It's not really like VB
COM in that respect, basically, I think your assemblies in ASP.NET are free
threaded, so it'll keep going until you say stop.

One of the really great things about .net, it's all disconnected. You
basically connect to the database to grab your data, do your processing
'offline' so to speak, and reconnect to post your changes back to the
database. In former ADO, you'd most likely of have had to stay connected to
the database throughout your processing, which would quickly form a bottle
neck under any sort of load (holding a connection to a database is the
biggest waste of resource imaginable). With ADO.NET however, this doesn't
exist as the time you're connected to the database is minimal.

Your objects will run several instances concurrenly if you build your
classes correctly. We do a lot of work that involves very very heavy
processing on disconnected data, and this has never proven to be a big
scalability problem.

I don't believe there's any specific limit on the number of threads IIS
(ASP.NET) can handle - it'll just keep on adding until your processor or
memory resource starts to run out.

As for configuration, there's always the odd tweak you can do, but if you
follow good coding practice, my guess is it'll be ok.

Paul
"Boris Condarco" <bc*******@sbef.gov.bo> wrote in message
news:#6**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have to develop an application, whose main feature is: read data from
DataBase, do many calculations, then write back the results to the DataBase, and finally show it to the user.

This calculations are based on different formula, so i was thinking to
develop a multithreaded Web Based application, in this order i have the
following questions:

Which aspects do i have to consider before, during and after the life cycle of the program?

How many theads can be created simultaniusly on ASP.NET?

Is there any configuration file to improve the threads performace?

I would really appreacite any suggestions...!

Thanks in advance...

Boris

Nov 17 '05 #2
Wrong. There is a limit on the number of threads ASP.NET can manage.
This limit is define in the machin.config file under the processmodel tag
using the MaxWorkerThread attribute.
This value can be change but above a certain value asp.net collapse.
So, becarefull when you decide to create more threads.
One solution could be to use the thread pool (ThreadPool class) in this case
you will not create more
thread but use the existing ones. But it's not a good idea if your task is
takes a lot of time.

"Paul" <pa**@nospam.ever.somewhere.com> a écrit dans le message de
news:0L*******************@newsfep2-win.server.ntli.net...
ASP.NET will handle all of your threading for you. It's not really like VB COM in that respect, basically, I think your assemblies in ASP.NET are free threaded, so it'll keep going until you say stop.

One of the really great things about .net, it's all disconnected. You
basically connect to the database to grab your data, do your processing
'offline' so to speak, and reconnect to post your changes back to the
database. In former ADO, you'd most likely of have had to stay connected to the database throughout your processing, which would quickly form a bottle
neck under any sort of load (holding a connection to a database is the
biggest waste of resource imaginable). With ADO.NET however, this doesn't
exist as the time you're connected to the database is minimal.

Your objects will run several instances concurrenly if you build your
classes correctly. We do a lot of work that involves very very heavy
processing on disconnected data, and this has never proven to be a big
scalability problem.

I don't believe there's any specific limit on the number of threads IIS
(ASP.NET) can handle - it'll just keep on adding until your processor or
memory resource starts to run out.

As for configuration, there's always the odd tweak you can do, but if you
follow good coding practice, my guess is it'll be ok.

Paul
"Boris Condarco" <bc*******@sbef.gov.bo> wrote in message
news:#6**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have to develop an application, whose main feature is: read data from
DataBase, do many calculations, then write back the results to the

DataBase,
and finally show it to the user.

This calculations are based on different formula, so i was thinking to
develop a multithreaded Web Based application, in this order i have the
following questions:

Which aspects do i have to consider before, during and after the life

cycle
of the program?

How many theads can be created simultaniusly on ASP.NET?

Is there any configuration file to improve the threads performace?

I would really appreacite any suggestions...!

Thanks in advance...

Boris


Nov 17 '05 #3
learn something new every day :)

"Joël" <jd********@netcourrier.com> wrote in message
news:3e***********************@nan-newsreader-02.noos.net...
Wrong. There is a limit on the number of threads ASP.NET can manage.
This limit is define in the machin.config file under the processmodel tag
using the MaxWorkerThread attribute.
This value can be change but above a certain value asp.net collapse.
So, becarefull when you decide to create more threads.
One solution could be to use the thread pool (ThreadPool class) in this case you will not create more
thread but use the existing ones. But it's not a good idea if your task is
takes a lot of time.

"Paul" <pa**@nospam.ever.somewhere.com> a écrit dans le message de
news:0L*******************@newsfep2-win.server.ntli.net...
ASP.NET will handle all of your threading for you. It's not really like VB
COM in that respect, basically, I think your assemblies in ASP.NET are

free
threaded, so it'll keep going until you say stop.

One of the really great things about .net, it's all disconnected. You
basically connect to the database to grab your data, do your processing
'offline' so to speak, and reconnect to post your changes back to the
database. In former ADO, you'd most likely of have had to stay connected to
the database throughout your processing, which would quickly form a

bottle neck under any sort of load (holding a connection to a database is the
biggest waste of resource imaginable). With ADO.NET however, this doesn't exist as the time you're connected to the database is minimal.

Your objects will run several instances concurrenly if you build your
classes correctly. We do a lot of work that involves very very heavy
processing on disconnected data, and this has never proven to be a big
scalability problem.

I don't believe there's any specific limit on the number of threads IIS
(ASP.NET) can handle - it'll just keep on adding until your processor or
memory resource starts to run out.

As for configuration, there's always the odd tweak you can do, but if you follow good coding practice, my guess is it'll be ok.

Paul
"Boris Condarco" <bc*******@sbef.gov.bo> wrote in message
news:#6**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have to develop an application, whose main feature is: read data from DataBase, do many calculations, then write back the results to the

DataBase,
and finally show it to the user.

This calculations are based on different formula, so i was thinking to
develop a multithreaded Web Based application, in this order i have the following questions:

Which aspects do i have to consider before, during and after the life

cycle
of the program?

How many theads can be created simultaniusly on ASP.NET?

Is there any configuration file to improve the threads performace?

I would really appreacite any suggestions...!

Thanks in advance...

Boris



Nov 17 '05 #4
I'm not sure from your message what you think multithreading can do for you
in this application. You can use multithreading to run 2 or more different
procecesses simultaneously, but from your description that isn't what you're
after.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Boris Condarco" <bc*******@sbef.gov.bo> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

I have to develop an application, whose main feature is: read data from
DataBase, do many calculations, then write back the results to the DataBase, and finally show it to the user.

This calculations are based on different formula, so i was thinking to
develop a multithreaded Web Based application, in this order i have the
following questions:

Which aspects do i have to consider before, during and after the life cycle of the program?

How many theads can be created simultaniusly on ASP.NET?

Is there any configuration file to improve the threads performace?

I would really appreacite any suggestions...!

Thanks in advance...

Boris

Nov 17 '05 #5
Thanks a lot guys for your helping me....! :-)

"Paul" <pa**@nospam.ever.somewhere.com> wrote in message
news:GM*******************@newsfep2-win.server.ntli.net...
learn something new every day :)

"Joël" <jd********@netcourrier.com> wrote in message
news:3e***********************@nan-newsreader-02.noos.net...
Wrong. There is a limit on the number of threads ASP.NET can manage.
This limit is define in the machin.config file under the processmodel tag
using the MaxWorkerThread attribute.
This value can be change but above a certain value asp.net collapse.
So, becarefull when you decide to create more threads.
One solution could be to use the thread pool (ThreadPool class) in this

case
you will not create more
thread but use the existing ones. But it's not a good idea if your task is takes a lot of time.

"Paul" <pa**@nospam.ever.somewhere.com> a écrit dans le message de
news:0L*******************@newsfep2-win.server.ntli.net...
ASP.NET will handle all of your threading for you. It's not really like
VB
COM in that respect, basically, I think your assemblies in ASP.NET are

free
threaded, so it'll keep going until you say stop.

One of the really great things about .net, it's all disconnected. You
basically connect to the database to grab your data, do your

processing 'offline' so to speak, and reconnect to post your changes back to the
database. In former ADO, you'd most likely of have had to stay

connected
to
the database throughout your processing, which would quickly form a

bottle neck under any sort of load (holding a connection to a database is the
biggest waste of resource imaginable). With ADO.NET however, this doesn't exist as the time you're connected to the database is minimal.

Your objects will run several instances concurrenly if you build your
classes correctly. We do a lot of work that involves very very heavy
processing on disconnected data, and this has never proven to be a big
scalability problem.

I don't believe there's any specific limit on the number of threads IIS (ASP.NET) can handle - it'll just keep on adding until your processor or memory resource starts to run out.

As for configuration, there's always the odd tweak you can do, but if you follow good coding practice, my guess is it'll be ok.

Paul
"Boris Condarco" <bc*******@sbef.gov.bo> wrote in message
news:#6**************@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I have to develop an application, whose main feature is: read data from > DataBase, do many calculations, then write back the results to the
DataBase,
> and finally show it to the user.
>
> This calculations are based on different formula, so i was thinking to > develop a multithreaded Web Based application, in this order i have the > following questions:
>
> Which aspects do i have to consider before, during and after the life cycle
> of the program?
>
> How many theads can be created simultaniusly on ASP.NET?
>
> Is there any configuration file to improve the threads performace?
>
> I would really appreacite any suggestions...!
>
> Thanks in advance...
>
> Boris
>
>
>



Nov 17 '05 #6

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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.