Net CRL via (C#)高级进阶——多线程(线程基础篇)

最近开始研究C#多线程知识,准备系统理解一下多线程。下面的脑图是根据 《Net CRL via(C#)》一书中多线程第26章线程基础所写内容的总结,大多数内容是原文照抄。算是方便以后忘记的时候可以快速查找。接下来会不定期将剩下的四章补充完毕,每一章都是一篇随笔,如果以后有新的认知也会在每一篇随笔下再更新。

开启专用线程(非运用于线程池)

        public static void SpecifiedThread()
        {
            Console.WriteLine("Main thread:starting a dedicated thread" + 
                "to do an asynchronous operation");
            Thread dedicatedThread = new Thread(ComputeBoundOp);
            dedicatedThread.Start(5);
            Console.WriteLine("Main thread: Doing other work here....");
            dedicatedThread.Join();//等待线程终止
        }
原文地址:https://www.cnblogs.com/Arvin-zhang/p/13044498.html