上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页
该文被密码保护。 阅读全文
posted @ 2017-02-12 10:58 nele 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-02-12 10:53 nele 阅读(4) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-02-11 15:33 nele 阅读(2) 评论(0) 推荐(0) 编辑
摘要: java 使用volatile实现线程数据的共享 直接上代码看效果: 效果如下: 如果不加volatile while循环不会停止,因为即使在主线程中setRunning(false) 在子线程中isRunning仍然是true。 在java中,子线程的执行的时候会在内存中划出一个区域,特意把子线程 阅读全文
posted @ 2017-02-09 22:48 nele 阅读(175) 评论(0) 推荐(0) 编辑
摘要: java 线程通信使用wait notify 配合synchronized 当线程执行wait()时,会把当前的锁释放,然后让出CPU,进入等待状态。当执行notify/notifyAll方法时,会唤醒一个处于等待该 对象锁 的线程,然后继续往下执行,直到执行完退出对象锁锁住的区域(synchron 阅读全文
posted @ 2017-02-09 22:12 nele 阅读(157) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-02-09 19:14 nele 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 在记录日志的的时候,获取用户的信息,比如用户的ip,浏览器等等信息是十分重要的。 但是在使用nginx反向代理的时候,可能经过转发无法获取到用户的真实的ip, 在此情况下需要配置nginx,让其在转发的时候在header 带上用户的真实的ip。 举个例子: 详细查看: http://blog.csd 阅读全文
posted @ 2017-02-03 15:32 nele 阅读(738) 评论(0) 推荐(0) 编辑
摘要: There are several reasons why it makes sense to build super-lightweight HTTP services (or, despite all the baggage the word brings, “microservices”). 阅读全文
posted @ 2017-02-03 10:55 nele 阅读(539) 评论(0) 推荐(0) 编辑
摘要: ASP.NET Core MVC now provides a true "one asp.net" framework that can be used for building both APIs and websites. But what if you only want to build 阅读全文
posted @ 2017-02-03 10:51 nele 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Recently I built plug-ins support to my TemperatureStation IoT solution web site. The code for .NET Core is different from what we have seen on full . 阅读全文
posted @ 2017-02-03 10:33 nele 阅读(294) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 20 下一页