2013年12月13日

线程,任务,同步之Thread(二)

摘要: /*线程,任务,同步之Thread(二)*/using System;using System.Threading;using System.Diagnostics;namespace Frank{ public class Test { //程序入口 public static void Main(string[] args) { /* //Thread t1 = new Thread(ThreadMethod); Thread t1 = new Thread(()=>{Console.WriteLine("2");});//使用Lambda表... 阅读全文

posted @ 2013-12-13 16:55 wp456 阅读(135) 评论(0) 推荐(0)

线程,任务,同步之Thread

摘要: /*线程,任务,同步之Thread*/using System;using System.Threading;using System.Diagnostics;namespace Frank{ public class Test { //程序入口 public static void Main(string[] args) { //Thread t1 = new Thread(ThreadMethod); Thread t1 = new Thread(()=>{Console.WriteLine("2");});//使用Lambda表达式 t1.... 阅读全文

posted @ 2013-12-13 15:26 wp456 阅读(168) 评论(0) 推荐(0)

线程,任务,同步之异步回调

摘要: /*线程,任务,同步之异步回调*/using System;using System.Threading;using System.Diagnostics;namespace Frank{ public class Test { public delegate int TakesAWhileDelegate(int data,int ms); //程序入口 public static void Main(string[] args) { TakesAWhileDelegate dl = new TakesAWhileDelegate(TakesAWhi... 阅读全文

posted @ 2013-12-13 14:45 wp456 阅读(199) 评论(0) 推荐(0)

线程,任务,同步之异步执行和等待线程

摘要: /*线程,任务,同步之异步执行和等待线程*/using System;using System.Threading;namespace Frank{ public class Test { public delegate int TakesAWhileDelegate(int data,int ms); //程序入口 public static void Main(string[] args) { TakesAWhileDelegate dl = new TakesAWhileDelegate(TakesAWhile); IAsyncResult ... 阅读全文

posted @ 2013-12-13 14:21 wp456 阅读(365) 评论(0) 推荐(0)

导航