Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27254

VS 2010 One Question

$
0
0
hey experts, i have one single problem hope any of experts can solve

im trying to run a thread multiple times at the same time, but with different values

here is what i mean

private sub listing()
for i as integer = from 0 to 10000
some code
Next
End Sub


instead of running this "for" loop from 0 to 10000 only Once (which will take lots of time) , im trying to divide it to make it run like 10 time(part) at once and each part runs 1000 time like this (0 to 1000) (1000 to 2000) (2000 to 3000) ... etc

can anyone give me a hint on how to make this

i thought of dividing the listing as

private sub listing1()
for i as integer = from 0 to 1000
some code
Next
End Sub

private sub listing2()
for i as integer = from 0 to 2000
some code
Next
End Sub

...etc, but this will take lots of coding, and does not look professional , so is there any

Viewing all articles
Browse latest Browse all 27254

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>