Peter Hurford
1/7/2003 11:17:00 PM
Have got a C# application and am looking at ways to
improve performance.
I've found an area of code where there's some work I need
to do, but where the user is going to get the same
response regardless of the outcome. Also, this chunk of
work could be quite slow since it involves an http
request/response over the internet.
Seems like a classic case of spawning this piece of work
in a new thread, and that's what I've attempted to do. The
only thing is, I need to pass some parameters into the new
thread. It's all quite lightweight - just a couple of
strings.
I'm new to multithreading under .NET and was wondering
what was the best approach to take? I know there are a
couple of ways to solve this, but which would be the best
approach, and why?
TIA