摘要:
防止多个线程同时访问同意对象//1.创建一个锁对象,锁对象必须是一个引用类型static readonly object objSync=new object();Thread t1=new Thread(new ThreadStart(()=>{ lock(objSync) { 代码块 ... 阅读全文
posted @ 2014-11-19 16:56
Struggling Rookie
阅读(102)
评论(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
阅读(84)
评论(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
阅读(102)
评论(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
阅读(102)
评论(0)
推荐(0)