C
Charlie Brown
What is the better way of doing the following by using the Thread Pool
instead of creating threads?
Dim removalThread As New Threading.Thread(AddressOf
CacheRemovals)
removalThread.Start()
Dim prodThread As New Threading.Thread(AddressOf
CacheProduction)
prodThread.Start()
Dim salesThread As New Threading.Thread(AddressOf CacheSales)
salesThread.Start()
removalThread.Join()
prodThread.Join()
salesThread.Join()
I googled a lot of stuff on thread pools, but frankly there is a lot
of conflicting information on its use.
Thanks in advance,
cb
instead of creating threads?
Dim removalThread As New Threading.Thread(AddressOf
CacheRemovals)
removalThread.Start()
Dim prodThread As New Threading.Thread(AddressOf
CacheProduction)
prodThread.Start()
Dim salesThread As New Threading.Thread(AddressOf CacheSales)
salesThread.Start()
removalThread.Join()
prodThread.Join()
salesThread.Join()
I googled a lot of stuff on thread pools, but frankly there is a lot
of conflicting information on its use.
Thanks in advance,
cb