• PUDN用户
    了解作者
  • C#
    开发工具
  • 9KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 3
    下载次数
  • 2014-06-25 22:55
    上传日期
C#多线程编程的入门级材料,帮助理解多线程的使用规范和技巧
Csharp-multi-thread.rar
  • C#多线程心得.doc
    68.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622b89053d2fbb0007d0b915/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b89053d2fbb0007d0b915/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">C# <span class="ff2 sc1">&#22810;&#32447;&#31243;&#22522;&#30784;</span>,<span class="ff2 sc1">&#20165;&#20197;&#27492;&#24515;&#24471;&#29486;&#32473;&#37027;&#20123;&#28212;&#26395;&#23398;&#20064;&#22810;&#32447;&#31243;&#30340;&#26379;&#21451;</span></div><div class="t m0 x1 h4 y3 ff2 fs1 fc1 sc0 ls0 ws0">&#24207;<span class="ff3">:</span></div><div class="t m0 x1 h4 y4 ff3 fs1 fc1 sc0 ls0 ws0"> <span class="_ _0"></span> <span class="_ _1"></span><span class="ff2">&#25105;&#26159;&#33258;&#23398;&#30340;<span class="_ _2"> </span></span>C#,<span class="ff2">&#22312;&#30475;&#21040;&#22810;&#32447;<span class="_ _0"></span>&#31243;&#19968;&#31456;&#26102;<span class="_ _0"></span></span>,<span class="_ _0"></span><span class="ff2">&#37057;&#38391;&#20102;</span>,<span class="_ _0"></span><span class="ff2">&#25630;&#19981;&#25026;</span>,<span class="_ _0"></span><span class="ff2">&#24456;&#38590;&#29702;&#35299;&#21543;<span class="_ _0"></span></span>...<span class="_ _0"></span><span class="ff2">&#33258;&#35748;&#20026;&#26377;&#36719;&#20214;&#22825;&#36171;<span class="_ _1"></span></span>,<span class="ff2">&#21364;&#27809;&#30475;<span class="_ _0"></span>&#25026;</span>...<span class="ff2">&#21769;<span class="_ _0"></span></span>...</div><div class="t m0 x1 h4 y5 ff2 fs1 fc1 sc0 ls0 ws0">&#33258;&#20449;&#24515;&#34987;&#25171;&#20987;&#20102;<span class="ff3">,</span>&#21040;&#32593;&#19978;&#26597;&#20102;&#24456;&#22810;&#30340;&#36164;&#26009;<span class="ff3">,</span>&#21253;&#25324;<span class="_ _3"> </span><span class="ff3">MSDN</span></div><div class="t m0 x1 h4 y6 ff2 fs1 fc1 sc0 ls0 ws0">&#19978;&#20063;&#26597;&#36807;&#36164;&#26009;<span class="ff3">,</span>&#21487;&#24796;&#36824;&#26159;&#27809;&#25630;&#25026;&#22810;&#32447;&#31243;<span class="ff3">...</span></div><div class="t m0 x1 h4 y7 ff3 fs1 fc1 sc0 ls0 ws0"> <span class="_ _0"></span> <span class="_ _0"></span><span class="ff2">&#20110;&#26159;</span>,<span class="ff2">&#30828;&#30528;&#22836;&#30382;&#19968;<span class="_ _0"></span>&#36941;&#19968;&#36941;&#30340;&#30475;&#22810;<span class="_ _0"></span>&#32447;&#31243;&#37027;&#19968;&#31456;<span class="_ _0"></span></span>,<span class="ff2">&#32456;&#20110;&#22312;&#30475;<span class="_ _0"></span>&#23436;&#31532;<span class="_ _3"> </span></span>31<span class="_ _3"> </span><span class="ff2">&#36941;</span>,<span class="ff2">&#25105;&#20889;&#20986;<span class="_ _0"></span>&#20102;&#31532;&#19968;&#20010;&#22810;&#32447;<span class="_ _0"></span>&#31243;&#31243;&#24207;</span>,<span class="_ _0"></span><span class="ff2">&#36824;&#31639;&#23567;&#26377;</span></div><div class="t m0 x1 h4 y8 ff2 fs1 fc1 sc0 ls0 ws0">&#25152;&#33719;<span class="ff3">,</span>&#37492;&#20110;&#23545;&#32593;&#19978;&#24456;&#22810;&#36164;&#26009;&#27809;&#21150;&#27861;&#29702;&#35299;<span class="ff3">(</span>&#22240;&#20026;<span class="ff3">,</span>&#24456;&#22810;&#36164;&#26009;&#19968;&#26469;&#23601;&#22823;&#31687;&#22823;&#31687;</div><div class="t m0 x1 h4 y9 ff2 fs1 fc1 sc0 ls0 ws0">&#30340;&#20195;&#30721;<span class="ff3">,</span>&#35753;&#20154;&#22836;&#26197;<span class="ff3">,</span>&#25105;&#26159;&#36825;&#20040;&#35273;&#24471;<span class="ff3">)</span>&#25152;&#20197;<span class="ff3">,</span>&#25105;&#33258;&#24049;&#23601;&#20889;&#20102;&#36825;&#31687;&#24515;&#24471;&#20307;&#20250;<span class="ff3">,</span>&#24076;&#26395;&#33021;&#32473;&#22823;&#23478;&#24102;&#26469;&#20123;&#35768;&#24110;&#21161;<span class="ff3">.</span></div><div class="t m0 x1 h4 ya ff2 fs1 fc1 sc0 ls0 ws0">&#21254;&#24537;&#20043;&#20013;<span class="ff3">,</span>&#38169;&#35823;&#38590;&#20813;<span class="ff3">,</span>&#27426;&#36814;&#25351;&#27491;<span class="ff3">,</span>&#20849;&#21516;&#36827;&#27493;<span class="ff3">.</span></div><div class="t m0 x1 h4 yb ff2 fs1 fc1 sc0 ls0 ws0">&#27491;&#25991;<span class="ff3">:</span></div><div class="t m0 x1 h4 yc ff3 fs1 fc1 sc0 ls0 ws0"> <span class="_ _0"></span><span class="ff2">&#39318;&#20808;&#25105;&#35201;&#25552;&#19968;&#28857;<span class="_ _0"></span></span>,<span class="ff2">&#20851;&#20110;&#32447;&#31243;&#30340;&#22522;&#30784;&#30693;&#35782;<span class="_ _0"></span></span>,<span class="ff2">&#19968;&#20010;&#31243;&#24207;<span class="_ _0"></span></span>,<span class="ff2">&#21363;&#19968;&#20010;&#36827;&#31243;</span>,<span class="ff2">&#21487;&#20197;&#26377;&#24456;&#22810;&#20010;&#32447;&#31243;<span class="_ _0"></span></span>,<span class="ff2">&#24403;&#28982;<span class="_ _0"></span></span>,<span class="ff2">&#33267;&#23569;&#35201;&#26377;&#19968;&#20010;&#32447;</span></div><div class="t m0 x1 h4 yd ff2 fs1 fc1 sc0 ls0 ws0">&#31243;<span class="ff3">,</span>&#21363;&#20027;&#32447;&#31243;<span class="ff3">.</span>&#30456;&#20449;&#22823;&#23478;&#37117;&#30693;&#36947;&#22810;&#32447;&#31243;&#30340;&#22909;&#22788;&#21543;<span class="ff3">,</span>&#20030;&#20010;&#20070;&#19978;&#30340;&#20363;&#23376;</div><div class="t m0 x1 h4 ye ff2 fs1 fc1 sc0 ls0 ws0">&#21543;<span class="ff3">,Windows<span class="_ _3"> </span></span>&#22312;&#22797;&#21046;&#25991;&#20214;&#30340;&#26102;&#20505;<span class="_ _0"></span><span class="ff3">,</span>&#26377;&#20010;&#21160;&#30011;<span class="ff3">,</span>&#26159;&#22312;&#22797;&#21046;&#25991;&#20214;&#36807;&#31243;&#20013;&#36827;&#34892;&#30340;<span class="_ _1"></span><span class="ff3">,</span>&#20063;&#23601;&#26159;&#19968;&#36793;&#22797;&#21046;&#25991;&#20214;<span class="_ _1"></span><span class="ff3">,</span>&#19968;&#36793;&#25773;&#25918;&#21160;&#30011;<span class="_ _0"></span><span class="ff3">,</span></div><div class="t m0 x1 h4 yf ff2 fs1 fc1 sc0 ls0 ws0">&#36825;&#20010;&#23601;&#26159;&#24456;&#31616;&#21333;&#30340;&#22810;&#32447;&#31243;<span class="ff3">,</span>&#22914;&#26524;&#27809;&#26377;&#21160;&#30011;<span class="ff3">,</span>&#22797;&#21046;&#19968;&#20010;&#22823;&#25991;&#20214;&#30340;&#26102;&#20505;<span class="ff3">,</span>&#25105;&#20204;&#30693;</div><div class="t m0 x1 h4 y10 ff2 fs1 fc1 sc0 ls0 ws0">&#36947;&#35745;&#31639;<span class="_ _0"></span>&#26426;&#26159;&#27515;&#26426;<span class="_ _0"></span>&#20102;<span class="ff3">,<span class="_ _0"></span></span>&#36824;&#26159;&#20173;<span class="_ _0"></span>&#28982;&#22312;&#22797;<span class="_ _0"></span>&#21046;&#21602;<span class="ff3">???<span class="_ _0"></span></span>&#22810;&#32447;<span class="_ _0"></span>&#31243;&#23601;&#24456;<span class="_ _0"></span>&#22909;&#30340;&#35299;&#20915;<span class="_ _0"></span>&#20102;&#36825;&#20010;<span class="_ _0"></span>&#38382;&#39064;<span class="_ _0"></span><span class="ff3">.</span>&#25026;&#20102;<span class="_ _0"></span>&#21543;<span class="ff3">,</span>&#24681;<span class="_ _0"></span><span class="ff3">,</span>&#24456;&#22909;<span class="_ _0"></span><span class="ff3">!!</span>&#37027;<span class="_ _0"></span>&#20040;<span class="ff3">,</span>&#25105;<span class="_ _0"></span>&#20204;&#23601;&#24320;</div><div class="t m0 x1 h4 y11 ff2 fs1 fc1 sc0 ls0 ws0">&#22987;&#21543;<span class="ff3">!</span></div><div class="t m0 x1 h4 y12 ff3 fs1 fc1 sc0 ls0 ws0"> <span class="ff2">&#39318;&#20808;</span>,<span class="ff2">&#25105;&#20204;&#20889;&#20010;&#31616;&#21333;&#30340;&#21333;&#32447;&#31243;&#31243;&#24207;</span>,<span class="ff2">&#20063;&#23601;&#26159;&#21482;&#26377;&#31243;&#24207;&#33258;&#24049;&#21019;&#24314;&#30340;&#37027;&#20010;&#20027;&#32447;&#31243;</span>,<span class="ff2">&#27809;&#26377;&#20351;&#29992;&#22810;&#32447;&#31243;</span>.</div><div class="t m0 x1 h4 y13 ff2 fs1 fc1 sc0 ls0 ws0">&#21019;&#24314;<span class="_ _0"></span>&#19968;&#20010;<span class="_ _0"></span>&#26032;&#24037;&#31243;<span class="_ _1"></span><span class="ff3">,<span class="_ _0"></span></span>&#21521;&#31383;<span class="_ _0"></span>&#21475;&#28155;<span class="_ _0"></span>&#21152;&#19968;<span class="_ _0"></span>&#20010;<span class="_ _2"> </span><span class="ff3">label<span class="_ _3"> </span></span>&#21629;&#21517;<span class="_ _0"></span>&#20026;<span class="_ _2"> </span><span class="ff3">label1;</span>&#25105;&#20204;<span class="_ _0"></span>&#35201;&#35753;<span class="_ _0"></span>&#31243;&#24207;<span class="_ _0"></span>&#36816;&#34892;<span class="_ _0"></span>&#26102;<span class="_ _2"> </span><span class="ff3">label1<span class="_ _3"> </span></span>&#23601;<span class="_ _0"></span>&#26174;&#31034;<span class="_ _0"></span>&#19968;&#20010;<span class="_ _0"></span>&#25968;&#23383;<span class="_ _1"></span><span class="ff3">,<span class="_ _0"></span></span>&#20551;&#35774;<span class="_ _0"></span>&#20026;</div><div class="t m0 x1 h4 y14 ff3 fs1 fc1 sc0 ls0 ws0">100;<span class="ff2">&#36890;&#24120;&#25105;&#20204;&#20250;&#30452;&#25509;&#22312;&#31383;&#21475;&#21152;&#36733;&#20107;&#20214;&#20013;&#20889;<span class="_ _3"> </span></span>label1.T<span class="_ _4"></span>ext = "100";<span class="ff2">&#36825;&#26679;</span>,<span class="ff2">&#36816;&#34892;</span></div><div class="t m0 x1 h4 y15 ff3 fs1 fc1 sc0 ls0 ws0">,label1<span class="_ _3"> </span><span class="ff2">&#26524;&#28982;&#26174;&#31034;&#20102;<span class="_ _3"> </span></span>100;</div><div class="t m0 x1 h4 y16 ff2 fs1 fc1 sc0 ls0 ws0">&#20195;&#30721;&#22914;&#19979;<span class="ff3">:(</span>&#20363;<span class="_ _3"> </span><span class="ff3">1)</span></div><div class="t m0 x1 h5 y17 ff1 fs1 fc2 sc0 ls0 ws0">using<span class="fc1"> System;</span></div><div class="t m0 x1 h5 y18 ff1 fs1 fc2 sc0 ls0 ws0">using<span class="fc1"> System.Windows.Forms;</span></div><div class="t m0 x1 h5 y19 ff1 fs1 fc2 sc0 ls0 ws0">namespace<span class="fc1"> ThreadT<span class="_ _5"></span>est</span></div><div class="t m0 x1 h5 y1a ff1 fs1 fc1 sc0 ls0 ws0">{</div><div class="t m0 x1 h5 y1b ff1 fs1 fc1 sc0 ls0 ws0"> <span class="fc2">public partial class</span> <span class="fc3">Form1 : Form</span></div><div class="t m0 x1 h5 y1c ff1 fs1 fc1 sc0 ls0 ws0"> {</div><div class="t m0 x1 h5 y1d ff1 fs1 fc1 sc0 ls0 ws0"> <span class="fc2">public</span> Form1()</div><div class="t m0 x1 h5 y1e ff1 fs1 fc1 sc0 ls0 ws0"> {</div><div class="t m0 x1 h5 y1f ff1 fs1 fc1 sc0 ls0 ws0"> InitializeComponent();</div><div class="t m0 x1 h5 y20 ff1 fs1 fc1 sc0 ls0 ws0"> }</div><div class="t m0 x1 h5 y21 ff1 fs1 fc1 sc0 ls0 ws0"> <span class="fc2">private void</span> Form1_Load(<span class="fc2">object<span class="_ _0"></span></span> sender<span class="_ _5"></span>, <span class="fc3">EventArgs</span> e)</div><div class="t m0 x1 h5 y22 ff1 fs1 fc1 sc0 ls0 ws0"> {</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • 闹钟C#开发C# CLOCK MLTUY THREAD
      很好的系统C# CLOCK MLTUY THREADC# CLOCK MLTUY THREADC# CLOCK MLTUY THREAD
    • C#多线程学习 Thread类使用 线程等编程方法
      C#多线程,System.Threading.Thread类,线程同步等
    • Accelerated C# 2010
      * How to thread efficiently and robustly * How C# anonymous types, lamba expressions, and extension methods work and how to use them Who is this book for? If you’re an experienced C# programmer, you...
    • Accelerated C# 2008
      How to thread efficiently and robustly How to use the C# 2008 anonymous types, lamba expressions, and extension methods Who is this book for? If you're an experienced C# programmer, you need to ...
    • C# Thread类最基本使用示例
      通过使用Thread后,一个进程可以创建一个或多个线程以执行与该进程关联的部分程序代码。使用 ThreadStart 委托或 ParameterizedThreadStart 委托指定由线程执行的程序代码。使用 ParameterizedThreadStart 委托可以...
    • C# (Thread)
      详细介绍多线程如何使用,线程安全,使用Lock语句实现。
    • 汉诺塔演示 C# Thread
      汉诺塔的演示。 用Label模拟盘子。 线程控制算法。 可以暂停,继续。 代码精简,详细备注,容易理解。
    • C# 线程thread 教程
      这个是关于C#thread的一些教程,希望能给带来帮助。
    • C# delegate thread范例
      C# delegate thread范例 若不懂在代码中,线程如何调用的可以看看
    • VB.Net-C#多线程Thread-代理委托delegate编程
      最近收集的VB.Net-C#多线程Thread-代理委托delegate编程。文章列表: c#.net多线程同步.txt C#WebBrowser页面与WinForm交互技巧一.txt C#多线程编程-多细全.txt C#多线程编程简单实例.txt C#多线程窗体控件安全访问....