• 大小: 0.68M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 线程  

资源简介

23个线程用法实例,由浅入深。

资源截图

代码片段和文件信息

using System;
using System.Threading;

namespace _1._2_LocalVariable
{
    class Program
    {
        static void Main(string[] args)
        {
            new Thread(Go).Start();
            Go();
            Console.ReadKey();
        }

        static void Go()
        {
            for (int i = 0; i < 5; i++)
            {
                Console.Write(“y“);
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-01-05 22:56  Thread\
     目录           0  2016-01-05 22:56  Thread\1.2_LocalVariable\
     文件        2578  2016-01-05 20:14  Thread\1.2_LocalVariable\1.2_LocalVariable.csproj
     文件         187  2016-01-05 20:14  Thread\1.2_LocalVariable\App.config
     文件         424  2016-01-05 20:14  Thread\1.2_LocalVariable\Program.cs
     目录           0  2016-01-05 22:56  Thread\1.2_LocalVariable\Properties\
     文件        1464  2016-01-05 20:14  Thread\1.2_LocalVariable\Properties\AssemblyInfo.cs
     目录           0  2016-01-05 22:56  Thread\1.2_LocalVariable\bin\
     目录           0  2016-01-05 22:56  Thread\1.2_LocalVariable\bin\Debug\
     文件        5120  2016-01-05 20:14  Thread\1.2_LocalVariable\bin\Debug\1.2_LocalVariable.exe
     文件         187  2016-01-05 20:14  Thread\1.2_LocalVariable\bin\Debug\1.2_LocalVariable.exe.config
     文件       13824  2016-01-05 20:14  Thread\1.2_LocalVariable\bin\Debug\1.2_LocalVariable.pdb
     文件       24224  2016-01-05 20:14  Thread\1.2_LocalVariable\bin\Debug\1.2_LocalVariable.vshost.exe
     文件         187  2016-01-05 20:14  Thread\1.2_LocalVariable\bin\Debug\1.2_LocalVariable.vshost.exe.config
     目录           0  2016-01-05 23:09  Thread\1.2_LocalVariable\bin\Release\
     目录           0  2016-01-05 22:56  Thread\1.2_LocalVariable\obj\
     目录           0  2016-01-05 22:56  Thread\1.2_LocalVariable\obj\Debug\
     文件         550  2016-01-05 20:14  Thread\1.2_LocalVariable\obj\Debug\1.2_LocalVariable.csproj.FileListAbsolute.txt
     文件        1755  2016-01-05 20:14  Thread\1.2_LocalVariable\obj\Debug\1.2_LocalVariable.csprojResolveAssemblyReference.cache
     文件        5120  2016-01-05 20:14  Thread\1.2_LocalVariable\obj\Debug\1.2_LocalVariable.exe
     文件       13824  2016-01-05 20:14  Thread\1.2_LocalVariable\obj\Debug\1.2_LocalVariable.pdb
     文件        6695  2016-01-05 23:05  Thread\1.2_LocalVariable\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2016-01-05 23:09  Thread\1.2_LocalVariable\obj\Debug\TempPE\
     文件           0  2016-01-05 20:14  Thread\1.2_LocalVariable\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2016-01-05 20:14  Thread\1.2_LocalVariable\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2016-01-05 20:14  Thread\1.2_LocalVariable\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
     目录           0  2016-01-05 22:56  Thread\1.3_ShareData\
     文件        2570  2016-01-05 20:14  Thread\1.3_ShareData\1.3_ShareData.csproj
     文件         187  2016-01-05 20:14  Thread\1.3_ShareData\App.config
     文件         504  2016-01-05 20:14  Thread\1.3_ShareData\Program.cs
     目录           0  2016-01-05 22:56  Thread\1.3_ShareData\Properties\
............此处省略547个文件信息

评论

共有 条评论