2014年11月19日
摘要: 防止多个线程同时访问同意对象//1.创建一个锁对象,锁对象必须是一个引用类型static readonly object objSync=new object();Thread t1=new Thread(new ThreadStart(()=>{ lock(objSync) { 代码块 ... 阅读全文
posted @ 2014-11-19 16:56 Struggling Rookie 阅读(97) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-11-19 10:47 Struggling Rookie 阅读(78) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2014-11-19 10:26 Struggling Rookie 阅读(93) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace _02_委托复习 { class Program { static void Main(string[] args... 阅读全文
posted @ 2014-11-19 10:25 Struggling Rookie 阅读(97) 评论(0) 推荐(0) 编辑