|
-
Dec 13th, 2010, 10:16 AM
#1
Thread Starter
New Member
Multithreading questions
Hi! My first post here and hoping someone has some answers.
I'm developing an application that will be multithreaded. The primary job of the thread will be to read some xml data from a website, parse it, and save it to sql server. I have a list of customers, each of which I have to get xml data for.
I have a customer class and a list <of Customer> and a dbOps class to handle db operations.
My question is if in the thread's main method, I pass in the customer from the list, instantiate a new dbOps object, does this make calls to the dbOps methods thread safe?
Lets say I have 5 threads doing this and each one has it's own dbops object and each is calling a stored proc to insert of update. Where do I need to worry about thread safety? Do I need to use transactions in the stored procs?
Thanks,
Rut
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|