Click here to Skip to main content
15,903,760 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi............

i want to process 5 datable in multi threading asynchronously how to do
it


pls give me solution
its argent...
Posted
Comments
Toli Cuturicu 18-Aug-10 10:16am    
Reason for my vote of 1
it's not argent;
it's not even urgent; not to any of us, anyway
very little information given

Sorry, left my telepathic helm home. Can you provide detailed info on what you need?
 
Share this answer
 
Comments
amitthakkar1987 18-Aug-10 9:51am    
i have 5 xml files and i create a datatable from that files if any new data come into xml file ...at that time i want multi threading
Nyarost 18-Aug-10 9:55am    
You can create 5 threads. Which of them checks last change date of each XML file. For example, it can do this once per second. If file has changed, we parse XML and perform insertion. Each of threads can establish its own connection to database or use common connection protected by mutex. (http://en.wikipedia.org/wiki/Mutual_exclusion)
amitthakkar1987 19-Aug-10 10:14am    
pls give me a whole solution
Nyarost 19-Aug-10 10:37am    
I am not C# programmer. I don't know all library functions. But you can google them out simply. Try searching for mutex, thread, filesystem routines.
Establish a FileSystemWatcher to watch for the file change event, and when you detect one, start a thread that processes that file. You can even use a thread pool to manage the whole process.

Be a programmer. It doesn't hurt. Really.
 
Share this answer
 
v2
Comments
amitthakkar1987 19-Aug-10 10:15am    
i m using threding but i am handled properly

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