随笔分类 -  多线程

只要从Task展开研究
测试一次多线程
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using System.Linq; 5 using System.Text; 6 using System.Threading; 7 阅读全文

posted @ 2022-06-13 10:51 泰坦尼克号上的活龙虾 阅读(25) 评论(0) 推荐(0) 编辑

多线程1:Task基本概念
摘要:恢复内容开始 Task默认使用线程池,也就是我们常说的后台线程:即 当主线程结束,那么创建的tasks任务都会随之结束 如何理解上边的话?我们用一个简单的例子来说明一下:(如下 static void Main(string[] args) { Task.Run(()=>Console.WriteL 阅读全文

posted @ 2022-05-26 15:33 泰坦尼克号上的活龙虾 阅读(62) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示