1) You can use a
ParameterizedThreadStart
and use the overload of
Thread.Start
that takes a parameter.
void connectPara( object o )
{
var s = o as string;
...
}
...
var t = new Thread( connectPara );
t.Start( "sp1" );
...
2) There are many ways to communicate between threads. If you just want to check if a thread has completed, you could use
Thread.IsAlive
or
Thread.ThreadState
.
Nick