MultiThreading in vb.net
hello all,
quick question,
I am using VS.net the latest version i believe, anyways,
the statement:
Dim execPreCacheStuffThread As New Threading.Thread(AddressOf
Me.PreCacheStuff)
execPreCacheStuffThread.Priority = hreading.ThreadPriority.BelowNormal
execPreCacheArticlesThread.Start()
..........
public function PreCacheStuff()
it does some caching of sorts depending on the current request.
end function
Question:
Will this properly run ASyncronously?
Because when debuggin this code, it doesn't really seem to return the user back to the page while the "PreCacheStuff()" function is doing it's thing. It seems to wait for the function to finish before returning the user which defeats the purpose of multi-threading.
Any tips or do you see anything i am doing wrong?
Flyin
|