Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends,

how to call threads dynamically in c# depends on records.please help me i am new to thread concept.suppose i will get three records from database so i have create three threads in back ground then i have to start.

Regards,
Aravind G
Posted

There is no such concept as "call a thread". Each thread is a separate "calling system", as it has a separate stack. The term "call" means something which always happens on the same stack.

To get into threading, you should just start reading on related fields of programming. This forum is just a forum, not a right place for detailed tutoring. Anyway, threads cannot be associated with database records; it simply does not make any sense. Learn threading and then come back. We will gladly help you when you start asking more literate questions making some sense.

—SA
 
Share this answer
 
If you are using .net4 and above then use Tasks, read the following:
The Basics of Task Parallelism via C#[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900