There is a collection and each element of that collection is sent to a function where 5 threads have to work on it.
How to make 5 threads work on the passed item?
foreach(var item in collection)
{
doSomeWork(item);
}
void doSomeWork(object item)
{
//here i have to do something with the passed 'item' by using 5 threads
}