-
June 9th, 2011, 12:10 PM
#1
Multithreading DotNet4 & VB2010
Hey guys,
And so I decided to make a multithreaded application :'(
I am new to multiple threads - so my problem is this...
4 Threads
1 Array of lets say 100 strings
How do I make the 4 threads access the same array - also, once one string has been used(read) - it will be removed by a function that I have written already.
So the problem I'm experiencing is that when the 1st thread removes the string from the array at that specific stage the 3rd might be accessing the array and the string returned from the array = nothing...
Any ideas?
Tags for this Thread
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
|