Multi-thread for asp.net 2.0 in c#

  • Thread starter Thread starter Ted Ngo
  • Start date Start date
T

Ted Ngo

Hi All,

Is there an example I can use to create mutli- thread for asp.net 2.0
in c#
Here is what I want to do. I have an multiple arrylist value. Array1,
Array2, Array3, Array3.
I want to pass the array into the thread and run each array on it own
thread.
On the thread it will create document and merger document.

Thanks. Please help.
 
Thanks,

I read on the web and the common theme is do not use multi-thread on
the web app.
Instead create a Web Service or Window Service, then make multi call to
that web service or Window service. Is that true.

Exammple:
my webservice name is CreateDoc(Arraylist A)

on my web app:
private void someclick()
{
Arraylist 1 = new arraylist(1,2,3,4);
Arraylist 2 = new arraylist(a,b,c,d,e);
Arraylist 3 = new arraylist(x,y,z,t,5,8,9);

//Call my webservice mutli time and pass in array
CreateDoc(1);
CreateDoc(2);
CreateDoc(3);

}

Please advice. Thanks
 
Ted Ngo said:
Thanks,

I read on the web and the common theme is do not use multi-thread on
the web app.

The Web App being (mostly) stateless is generally allowed to restart almost
anything anytime. Threads do not like this.
 
Back
Top