Calling function using threads |
| santhosh kumar replied to Eswaran Radhakrishnan at 04-Jul-08 06:08 |
Hi,
Thread[] ThreadArray = null;
protected void Page_Load(object sender, EventArgs e) {
for (int i = 0; i < 10; i++) {
// *** Create a thread and point it to QueueFirstRun function ThreadArray[i] = new Thread(ob[i].Run);
// *** Make the Thread to run as the Background thread ThreadArray[i].IsBackground = true;
// *** Start the Thread ThreadArray[i].Start();
}
}
Regards, Santhosh
|
|