|
-
Jun 7th, 2011, 06:30 PM
#11
Re: BackgroundMultiWorker
@coolcurrent4u:
If there's a shared resource that each thread uses briefly and occasionally then that's OK, but if all threads are competing for a shared resource at all times then using multiple threads is pointless. It's hard to say for sure with so little information but it sounds like your class should be using an instance variable and then you should be creating one instance per thread. That way, each thread has its own variable and there's no competition.
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
|