临界区问题:Search/Insert/Delete Problem 的泛化
分类:
其他好文 时间:
2015-05-14 18:19:40
阅读次数:
210
Interprocess Communication Affects Application Response TimeRandy StaffordRESPONSE TiME iS CRiTiCAL TO SOFTWARE USABiLiTY. Few things are as frustrating as waiting for some software system to respond,...
分类:
移动开发 时间:
2015-05-12 11:22:26
阅读次数:
158
Cacti监控工具收集数据,根据数据绘图CPU负载:0.81.2...报警:tholdNagios监控工具主机,服务/资源状态:OK,WARNGING,CRITICAL,UNKNOWNCPU:90%(CRITICAL)、80%(WARNING)、80%以下OK、UNKNOWN报警系统Nagioscore不做任何监控工作Plugins插件(scripts)N种对象来实现监控工..
分类:
移动开发 时间:
2015-05-08 00:12:22
阅读次数:
215
监控redis端口如下:#!/bin/sh#Createdbyhys20140823declare-amaster_ismaster_is=($(redis-cli-h192.168.0.76-p7711INFO|greprole|awk-F:‘{print$2}‘))echo$master_isif[${master_is}=="master"];thenecho"OK-slaveisrunning"exit0elseecho"Critical-slaveiserror"exit2fi监控..
分类:
移动开发 时间:
2015-05-07 17:06:06
阅读次数:
136
Interprocess Communication Affects Application Response TimeRandy StaffordRESPONSE TiME iS CRiTiCAL TO SOFTWARE USABiLiTY. Few things are as frustrating as waiting for some software system to respond,...
分类:
移动开发 时间:
2015-05-07 10:34:13
阅读次数:
167
原作者:chexlong原文地址:http://blog.csdn.net/chexlong/article/details/7060425在Win32平台上进行多线程编程,常会用到锁。下边用C++实现了互斥对象(Mutex)锁和临界区(CRITICAL_SECTION)锁,以加深理解和今后方便使用...
分类:
其他好文 时间:
2015-05-06 20:59:03
阅读次数:
154
configure 时出现以下错误:checking for autoconf... no
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.问题原因:
缺少autoconf或版本太低下载安装新版本#...
分类:
其他好文 时间:
2015-05-02 11:15:11
阅读次数:
510
1. 基础用法python提供了一个标准的日志接口,就是logging模块。日志级别有DEBUG、INFO、WARNING、ERROR、CRITICAL五种(级别依次升高),分别对应的函数为debug()、info()、warning()、error()、critical()。>>> import ...
分类:
编程语言 时间:
2015-04-30 20:00:13
阅读次数:
137
critical-section problema solution to critical-setion problem should satisfy 3 requiremnets:1.Mutual exclusion2.Progress3.Bounded waiting2 & 3的区别?有什么场...
分类:
系统相关 时间:
2015-04-30 15:41:46
阅读次数:
189
一、前言 最近,在项目中涉及到多线程访问临界资源的问题。为了保护临界资源,可以是使用互斥量或者是使用临界区。由于,我不需要在多进程中同步,又为了效率的考量,所以选择了使用临界区的方式。但是,在使用临界区的时候,发现了一个类是鸡生蛋蛋生鸡的问题。现将问题和自己的解决方法记录如下,如有不对之处,还请指....
分类:
其他好文 时间:
2015-04-27 13:10:27
阅读次数:
230