C#多线程3种创建Thread、Delegate.BeginInvoke、线程池
摘要:1 创建多线程,一般情况有以下几种:(1)通过Thread类 (2)通过Delegate.BeginInvoke方法 (3)线程池usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Timers;usingSystem.Threading;usingSystem.IO;usingSystem.Xml;namespaceXMLTest{publicclassXmlTest { delegatevoidDelegate_Test(inta); staticvoidMain
阅读全文