随笔分类 -  委托异步多线程

摘要:转载:https://www.cnblogs.com/xiashengwang/archive/2012/08/18/2645588.html 不管我们使用thread,threadPool,task,还是APM异步,本质都是在使用多线程。对于新手来说,不太敢用多线程的原因,就我个人的体验来说,就是 阅读全文
posted @ 2019-10-21 10:40 DarJeely 阅读(304) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Th... 阅读全文
posted @ 2019-06-11 16:07 DarJeely 阅读(593) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Threading; using System.Threading.Tasks; namespace Log { public class Logger { // 用于存放写日志任务的队列 priv... 阅读全文
posted @ 2019-06-11 15:59 DarJeely 阅读(378) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Concurrent;using System.Collections.Generic;using System.Collections.ObjectModel;using System.ComponentModel;usi 阅读全文
posted @ 2019-06-11 15:49 DarJeely 阅读(389) 评论(0) 推荐(0)
摘要:并发队列ConcurrentQueue 阅读全文
posted @ 2019-06-11 15:15 DarJeely 阅读(292) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; usi... 阅读全文
posted @ 2019-06-11 15:05 DarJeely 阅读(356) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Messaging; using System.Text; using System.Threading; namespace 委托和异步方法 { public delegate int Add... 阅读全文
posted @ 2019-06-11 14:52 DarJeely 阅读(543) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.Linq; using System.Management; using System.Runtime.InteropServices; using System.Text... 阅读全文
posted @ 2019-06-11 14:38 DarJeely 阅读(144) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /* //由框架提供的委托类型 //无返的 Action act0 = () => Co... 阅读全文
posted @ 2019-06-11 14:37 DarJeely 阅读(194) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 泛型 { class Program { static void Main(string[] args) ... 阅读全文
posted @ 2019-06-11 14:35 DarJeely 阅读(117) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 多线程 { class Program { static void Main(string[] args) ... 阅读全文
posted @ 2019-06-11 14:18 DarJeely 阅读(630) 评论(1) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lambda //匿名方法,用来实现委托 { class Program { delegate string ... 阅读全文
posted @ 2019-06-11 14:16 DarJeely 阅读(224) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.... 阅读全文
posted @ 2019-06-11 12:32 DarJeely 阅读(152) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Diagnostics; namespace Async_Study { class Pro... 阅读全文
posted @ 2019-06-11 11:52 DarJeely 阅读(128) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; namespace Model { /// /// 日志文件帮助类 /// public class Lo... 阅读全文
posted @ 2019-06-11 10:47 DarJeely 阅读(263) 评论(0) 推荐(0)
摘要:using System; using System.Threading; using System.Collections.Generic; using System.Windows.Forms; namespace AsyncDemo { public partial class Form1 : Form { public Form1() {... 阅读全文
posted @ 2019-06-11 10:07 DarJeely 阅读(589) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Thread... 阅读全文
posted @ 2019-06-11 09:50 DarJeely 阅读(362) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Diagnostics; using System.Threading.Tasks; using Sys... 阅读全文
posted @ 2019-06-11 09:41 DarJeely 阅读(203) 评论(0) 推荐(0)
摘要:using System;using System.Diagnostics;using System.Threading;using System.Threading.Tasks;namespace AsyncAwait{ class Program { //http://www.cnblogs.c 阅读全文
posted @ 2019-06-11 09:25 DarJeely 阅读(256) 评论(0) 推荐(0)
摘要:1. 引言 最近在学习Abp框架,发现Abp框架的很多Api都提供了同步异步两种写法。异步编程说起来,大家可能都会说异步编程性能好。但好在哪里,引入了什么问题,以及如何使用,想必也未必能答的上来。自己对异步编程也不是很了解,今天就以学习的目的,来梳理下同步异步编程的基础知识,然后再来介绍下如何使用a 阅读全文
posted @ 2019-06-11 09:24 DarJeely 阅读(1868) 评论(0) 推荐(3)