If you have the option you may be better to combine the two arrays into on array of pairs of elements.
In reply to Re: parallel procesing by GrandFather in thread parallel procesing by baxy77bax