110,536
社区成员
发帖
与我相关
我的任务
分享
public void aa()
{
//同时下面方法,而不管第一个返回是什么结果
this.bb( "dddd" );
this.bb( "cccc" );
}
protected bool bb( object obj )
{
bool status=false ;
if ( true )
{
status = true;
}
return status;
}
//假如要执行3次
for (int i=0;i<3;i++)
{
Thread thread = new Thread( new ParameterizedThreadStart( bb) );
thread.IsBackground = true;
thread.Start( obj);
}
Thread thread = new Thread( new ParameterizedThreadStart( bb) );
thread.IsBackground = true;
thread.Start( obj);