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

multi threading in asp.net

HI,
I am trying multi threading in asp.net , but i could not do it.
We do a daily Run in our company for calculations purpose etc.. we use SQl Stored Procedures to do all the process at back end.
Actually my requirement is, when i call a Sql Stored Procedure from aspx page the process begins to run for that stored procedure, and I want to run another Sql Stored Procedure simultaneously as a second thread so that i can minimise the time to take the complete the run.
please any body come out with a solution for above problem.
Thanks.
Regards,
Hari.
Jul 21 '05 #1
5 1640
<"=?Utf-8?B?aGFyaQ==?=" <hari kr*****@discussions.microsoft.com>>
wrote:
I am trying multi threading in asp.net , but i could not do it.
We do a daily Run in our company for calculations purpose etc.. we
use SQl Stored Procedures to do all the process at back end.
Actually my requirement is, when i call a Sql Stored Procedure from
aspx page the process begins to run for that stored procedure, and I
want to run another Sql Stored Procedure simultaneously as a second
thread so that i can minimise the time to take the complete the run.
please any body come out with a solution for above problem.


It would help if you could say what your actual problem is.

See http://www.pobox.com/~skeet/csharp/multithreading.html for general
multi-threading discussion.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
ASP.NET by nature is multi threaded itself.

But in your question you want to invoke two seperate stored procedures from a ASPX page.

There is no special codeing required for that, you can define the two methods in your code behind file. and then on click on the button you can use the Threading class to invoke the relevant methods in the thread.

Another way would be to write a Library dll, which has a class that can call the various methods in a Thread. and you can invoke this class from your ASP.NET Page.
But since ASP.NET exposes the full power of the programming language, there is nothing special you need to do ..
--
Regards,
Saurabh Nandu
Master C#, the easy way...
[ www.MasterCSharp.com ]
Jul 21 '05 #3
Gav
Have a look into IAsyncResult Begin/End

"Saurabh Nandu" <Sa**********@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...
ASP.NET by nature is multi threaded itself.

But in your question you want to invoke two seperate stored procedures from a ASPX page.
There is no special codeing required for that, you can define the two methods in your code behind file. and then on click on the button you can
use the Threading class to invoke the relevant methods in the thread.
Another way would be to write a Library dll, which has a class that can call the various methods in a Thread. and you can invoke this class from
your ASP.NET Page.

But since ASP.NET exposes the full power of the programming language, there is nothing special you need to do ..

--
Regards,
Saurabh Nandu
Master C#, the easy way...
[ www.MasterCSharp.com ]

Jul 21 '05 #4
"hari" <hari kr*****@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
HI,
I am trying multi threading in asp.net , but i could not do it.
We do a daily Run in our company for calculations purpose etc.. we use SQl Stored Procedures to do all the process at back end. Actually my requirement is, when i call a Sql Stored Procedure from aspx page the process begins to run for that stored procedure, and I want to run
another Sql Stored Procedure simultaneously as a second thread so that i can
minimise the time to take the complete the run. please any body come out with a solution for above problem.
Thanks.
Regards,
Hari.


I think I'd use a ThreadPool.

Jul 21 '05 #5
"Gav" <sp**@spam.com> wrote in message
news:OS**************@TK2MSFTNGP10.phx.gbl...
Have a look into IAsyncResult Begin/End

"Saurabh Nandu" <Sa**********@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...
ASP.NET by nature is multi threaded itself.

But in your question you want to invoke two seperate stored procedures

from a ASPX page.

There is no special codeing required for that, you can define the two

methods in your code behind file. and then on click on the button you can
use the Threading class to invoke the relevant methods in the thread.

Another way would be to write a Library dll, which has a class that can

call the various methods in a Thread. and you can invoke this class from
your ASP.NET Page.


But since ASP.NET exposes the full power of the programming language,

there is nothing special you need to do ..


That's between the Client and the Server, the OP is asking how to
parallelize a specific case on the Server.

Jul 21 '05 #6

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

Similar topics

37
by: ajikoe | last post by:
Hello, Is anyone has experiance in running python code to run multi thread parallel in multi processor. Is it possible ? Can python manage which cpu shoud do every thread? Sincerely Yours,...
77
by: Jon Skeet [C# MVP] | last post by:
Please excuse the cross-post - I'm pretty sure I've had interest in the article on all the groups this is posted to. I've finally managed to finish my article on multi-threading - at least for...
0
by: Stuart Norris | last post by:
Dear Group, I am attempting to write a "splash" and "status" Form using a second thread. I wish to use this Form to display status information to the user when I do CPU intensive work in my...
13
by: notregister | last post by:
my program have as many as 8 threads running at a same time. can different threads open a same file at the same time? let say thread1 open a file abc.txt at the same time with thread 2, both doing...
2
by: NiponW | last post by:
Hi, I have SQL SERVER 2000 SP4 Enterprise , Windows 2003 Enterprise on Xeon 4 Processors (now with multi-threading CPU) and I have questions which seem weirds to me (used to have the same...
20
by: dotyet | last post by:
Hi Everyone, It would be a real big help if anyone can shed light on whether DB2 UDB 8.2 on Solaris will make optimum use of a Sun T2000 server. The server has 1 CPU with 8 cores and each core...
0
ammoos
by: ammoos | last post by:
hi friends pls help me.. i got an assignment which i feel very difficult to me.. i dont have more knowledge about multi-threading in .net... the assignment details is below.... pls help me... i...
14
by: Akihiro KAYAMA | last post by:
Hi all. I found cooperative multi-threading(only one thread runs at once, explicit thread switching) is useful for writing some simulators. With it, I'm able to be free from annoying mutual...
5
by: George Maicovschi | last post by:
As multi-threading is not built in PHP I've been using a hack letting the Apache server handle the multi-threading issues, but I'm really curious of other approaches to this issue. If anyone has...
1
by: =?Utf-8?B?QU1lcmNlcg==?= | last post by:
Sorry this is so long winded, but here goes. Following the model of http://msdn2.microsoft.com/en-us/library/system.runtime.remoting.channels.ipc.ipcchannel.aspx I made a remote object using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.