assign values of arraylist to Thread Array
I have an arraylist which contains 10 values and again i have created a thread array i want to assign the thread arraylist values equally to all each thread of thread array having a thread count as 5.i.e,each thread will get 2 values from array list.how to assign those two values from arraylist to each thread???and again i need to run those threads parallelly.

CrishPosted Dec 10, 2010, 5:28 AM
You can refer this below code.I think it will help you.
im mySqlSelect As New SqlCommand("select * from categories", mySQLconnection)
mySqlSelect.CommandType = CommandType.Text
Dim mySqlDataReader As SqlDataReader = mySqlSelect.ExecuteReader()
Dim myArrList As New ArrayList()
While mySqlDataReader.Read()
myArrList.Add(mySqlDataReader("categoryName").ToString())
End While
For Each objReader As Object In myArrList
Response.Write(objReader.ToString() + "
")
Next