线程状态关系图 在.NET Framework中,可以通过ThreadState属性获取线程的执行状态。上图标识出三种状态“层”,ThreadState以按位计算的方式组合状态层,每种状态层的成员之间都是互斥的,下面是所有的三种状态“层”:运行 (running) / 阻止 (blocking) ....
分类:
编程语言 时间:
2015-05-22 00:16:56
阅读次数:
572
1.需求使用sls安装nginx并管理nginx的配置文件,当nginx配置文件被修改时,自动更新配置文件,并重启nginx。2.配置1.在master端上写好nginx.sls文件mkdir-p/srv/salt/nginxcd/srv/salt/nginxviminit.slsnginx:pkg:-installedservice:-running-enable:True-reload:True-watch:-p..
分类:
其他好文 时间:
2015-05-21 06:44:00
阅读次数:
315
1 踩过的坑1.1 io_serviceboost::asio::io_service::run()会一直运行到没有任务为止,如果中途调用stop(),则所有等待中的任务会立刻执行。解决方案是用run_one(),即while (keep_running)
io_service_.run_one();keep_running是个bool值,要stop io_service的时候直接置fals...
分类:
Web程序 时间:
2015-05-20 18:28:55
阅读次数:
145
MyEclipse2015+Maven3出现错误:
T E S T S
-------------------------------------------------------
Running DataDictTest
org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibe...
分类:
编程语言 时间:
2015-05-20 11:27:32
阅读次数:
1103
Task / Shortcut WidgetsThe standard way of running a Tasker task is by attaching it to a profile which performs it when the profile becomes active. Ho...
分类:
其他好文 时间:
2015-05-20 00:07:43
阅读次数:
107
Service翻译:
Class Overview
A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply fun...
分类:
移动开发 时间:
2015-05-18 11:03:12
阅读次数:
184
We used to be told that tasker is only capable of detecting foreground application, if the app gets into background running, it would see it as exit.I...
分类:
移动开发 时间:
2015-05-18 07:46:16
阅读次数:
200
11gR2 Clusterware Key Facts11gR2 Clusterware is required to be up and running prior to installing a 11gR2 Real Application Clusters database.The GRID ...
分类:
其他好文 时间:
2015-05-15 19:17:22
阅读次数:
178
一、popup 弹出框 在onCreate中创建时异常Unable to add window -- token null is not valid; is your activity running?错误及其修改方法popup 弹出框是要依赖于一个父窗口或者父 View,这个错误的根本原因是说父窗...
分类:
移动开发 时间:
2015-05-15 01:10:30
阅读次数:
123
本笔记针对https://www.shiyanlou.com/courses/running/50网站对mongoDB的学习和总结。1,启动mongoDB 因为mongoDB服务并不随着系统一起启动,所以需要首先启动mongoDB服务:shiyanlou:~/ $ sudo service mo.....
分类:
数据库 时间:
2015-05-14 23:35:04
阅读次数:
238