473,465 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1641
<"=?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...
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
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.