I have a background worker which invokes parallel threads for list items
doWork()
{
Parallel.foreach(list1, a=>
{
while(true)
{
//do some operations
}
});
Parallel.foreach(list2, b=>
{
while(true)
{
//do some operations
}
});
}
If i want to run both of these lists together parallelly, should i create another thread as their parent or anyother way?? i am getting both the lists separately so combining them is not an option.And i am running infinite loops inside both of them.