soldoni
New member
- Joined
- Sep 24, 2012
- Messages
- 4
- Programming Experience
- 10+
I have a list of items in a datagrid
item1
item2
item3
item4
item5
item6
item7
etc...
I need to call a function on every item like this
function MyFunction(item from list)
but this function need some minutes (about 1-2 minutes) to be completed (because use http request etc...)
So now how I can start a multithreading on the list like this
example set a number of threads to 3 and start
MyFunction(item1 from list)
MyFunction(item2 from list)
MyFunction(item3 from list)
at the same time
when completed start
MyFunction(item4 from list)
MyFunction(item5 from list)
MyFunction(item6 from list)
at the same time
etc...
item1
item2
item3
item4
item5
item6
item7
etc...
I need to call a function on every item like this
function MyFunction(item from list)
but this function need some minutes (about 1-2 minutes) to be completed (because use http request etc...)
So now how I can start a multithreading on the list like this
example set a number of threads to 3 and start
MyFunction(item1 from list)
MyFunction(item2 from list)
MyFunction(item3 from list)
at the same time
when completed start
MyFunction(item4 from list)
MyFunction(item5 from list)
MyFunction(item6 from list)
at the same time
etc...