C # multi-threaded concise notes

 

New Thread (() => {}). Start (); 

// Anonymous thread 
Thread Ntd = new Thread (T1); 
Ntd.IsBackground = true; // Background thread 
Ntd.Start ("Hello" );  // Normal thread  // Please ignore the following paragraph white can take a look at  public static void T1 (object e)  {  MessageBox.Show (e.ToString (), "threadB" );}



Usually write code to record the essence of the essence, you can always come back to see

Guess you like

Origin www.cnblogs.com/alannever/p/12735693.html