上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页
摘要: 一、两者区别 1.ManualResetEvent 调用一次Set()后将允许恢复所有被阻塞线程。需手动在调用WaitOne()之后调用Reset()重置信号量状态为非终止,然后再次调用WaitOne()的时候才能继续阻塞线程,反之则不阻塞 2.AutoResetEvent,调用一次Set()只能继 阅读全文
posted @ 2015-10-28 20:10 b̶i̶n̶g̶.̶ 阅读(6776) 评论(1) 推荐(0)
摘要: public class DirectoryExtends { /// /// 拷贝目录 /// /// 源目录 /// 新目录 public static void CopyDirectory(s... 阅读全文
posted @ 2015-07-21 15:11 b̶i̶n̶g̶.̶ 阅读(356) 评论(0) 推荐(0)
摘要: 1.概念 观察者模式(有时又被称为发布-订阅Subscribe>模式、模型-视图View>模式、源-收听者Listener>模式或从属者模式)是软件设计模式的一种。在此种模式中,一个目标物件管理所有相依于它的观察者物件,并且在它本身的状态改变时主动发出通知。这通常透过呼叫各观察者所提供的方法来实现。... 阅读全文
posted @ 2015-07-21 09:38 b̶i̶n̶g̶.̶ 阅读(1317) 评论(1) 推荐(0)
摘要: 参考网址1.http://www.cnblogs.com/JimmyZhang/archive/2008/09/16/1291857.html2.http://www.cnblogs.com/zengqinglei/archive/2013/05/14/3078842.html 阅读全文
posted @ 2015-07-15 11:13 b̶i̶n̶g̶.̶ 阅读(138) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Data;using System.Xml;using System.Xml.... 阅读全文
posted @ 2015-07-15 10:16 b̶i̶n̶g̶.̶ 阅读(144) 评论(0) 推荐(0)
摘要: http://www.codeproject.com/Articles/6259/Monitoring-network-speed 阅读全文
posted @ 2015-07-03 20:36 b̶i̶n̶g̶.̶ 阅读(170) 评论(0) 推荐(0)
摘要: 1.打开配置文件$ sudo vi /etc/ssh/sshd_config2.修改操作PermitRootLogin without-password 修改为PermitRootLogin yes3.重启shh服务或重启计算机$ service sshd restart 阅读全文
posted @ 2015-07-01 17:35 b̶i̶n̶g̶.̶ 阅读(1587) 评论(0) 推荐(0)
摘要: 1、反向代理全局配置 include mime.types; default_type application/octet-stream; client_max_body_size 100m; keepalive_timeout 65; proxy_read_timeout 600s; 2、http 阅读全文
posted @ 2015-07-01 16:20 b̶i̶n̶g̶.̶ 阅读(512) 评论(0) 推荐(0)
摘要: 安装前准备://更新系统1.sudo apt-get update//安装pcre包2.sudo apt-get install libpcre3 libpcre3-dev3.sudoapt-getinstall openssllibssl-dev 阅读全文
posted @ 2015-07-01 15:58 b̶i̶n̶g̶.̶ 阅读(234) 评论(0) 推荐(0)
摘要: function Map() { this.keys = new Array(); this.data = new Array(); //添加键值对this.set = function (key, value) { if (this.data[key] == null) {//如键不存在则身【键】... 阅读全文
posted @ 2015-07-01 13:37 b̶i̶n̶g̶.̶ 阅读(1953) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页