working with ARRAYS and THREADS

WEIRD's Avatar, Join Date: Dec 2007
Newbie Member
hello,hw r u?
im currently working on a program but have come up with an issue that i cant sort because i dont have the exact knowledge as to how to solve it.

im creating a program which has an array with random integers.these integers have to be picked out using a thread.its this bit that i dont know.

i can create the two arrays 1 and 2 with numbers from 0...100
using these arrays:

im to:

"thread 1"object finds all the integers in the range 70...80 in array1 and sends it to "thread3"object

"thread 2" object finds all the integers in the range 70...80 in array2 and sends it to "thread3" object


so my query here is "how can a thread pick out integers from an array?"

i will really appreciate it if someone would help me out here with their kind knowledge.
thank u
nice day!
WEIRD's Avatar, Join Date: Dec 2007
Newbie Member
No Response Yet!
akbaraliakbar's Avatar, Join Date: Dec 2007
Newbie Member
Quote:
Originally Posted by WEIRD
hello,hw r u?
im currently working on a program but have come up with an issue that i cant sort because i dont have the exact knowledge as to how to solve it.

im creating a program which has an array with random integers.these integers have to be picked out using a thread.its this bit that i dont know.

i can create the two arrays 1 and 2 with numbers from 0...100
using these arrays:

im to:

"thread 1"object finds all the integers in the range 70...80 in array1 and sends it to "thread3"object

"thread 2" object finds all the integers in the range 70...80 in array2 and sends it to "thread3" object


so my query here is "how can a thread pick out integers from an array?"

i will really appreciate it if someone would help me out here with their kind knowledge.
thank u
nice day!