Monitor对象 1.Monitor.Enter(object)方法是获取锁,Monitor.Exit(object)方法是释放锁,这就是Monitor最常用的两个方法,当然在使用过程中为了避免获取锁之后因为异常,致锁无法释放,所以需要在try{} catch(){}之后的finally{}...
Verilog Interiew Quetions Collection :What is the difference between $display and $monitor and $write and $strobe?What is the difference between code-...
分类:
其他好文 时间:
2015-02-12 10:28:33
阅读次数:
285
在RabbitMQ中,pool 是以worker_pool 的形式存在的, 其主要用途之一是对Mnesia transaction的操作. 而在RabbitMQ 中, pool 中的worker 数量是固定不变的, 是和虚拟机的schedulers 相关.这次会首先分别分析设计worker_pool...
分类:
其他好文 时间:
2015-02-12 00:36:36
阅读次数:
216
HA 即 (high available)高可用,又被叫做双机热备,用于关键性业务。 简单理解就是,有两台机器A和B,正常是A提供服务,B待命闲置,当A宕机或服务宕掉,会切换至B机器继续提供服务。下面我们使用heartbeat来做HA集群,并且把nginx服务作为HA对应的服务。试验准备:两个机器,...
分类:
其他好文 时间:
2015-02-11 15:59:01
阅读次数:
120
Could not open /dev/vmmon: No such file or directory...
分类:
系统相关 时间:
2015-02-10 11:25:34
阅读次数:
197
1.Chapter1 引论:(1) OLTP 和 OLAP 概念:OLTP(on-line transaction processing) 联机事物处理,就是我们常常说的关系数据库的主要应用,主要是主要的、日常的事务处理,比如银行交易。比如:mysqlOLAP(on-line analytical ...
分类:
其他好文 时间:
2015-02-09 20:00:47
阅读次数:
182
从这篇开始,这一系列主要分析在开源社区中,Erlang 相关pool 的管理和使用.在开源社区,Emysql 是Erlang 较为受欢迎的一个MySQL 驱动. Emysql 对pool 的管理和使用是非常典型的,pool 的管理角色中,主要有available(记录当前pool 中可供使用的成员)...
分类:
数据库 时间:
2015-02-09 19:57:06
阅读次数:
477
在前面一篇给出的Transaction的定义中,信息的读者应该看到了一个叫做DepedentClone的方法。该方法对用于创建基于现有Transaction对 象的“依赖事务(DependentTransaction)”。不像可提交事务是一个独立的事务对象,依赖事务依附于现有的某个事务(可能是可提交...
分类:
其他好文 时间:
2015-02-09 18:12:53
阅读次数:
253
#!/usr/bin/perl -w# Heavily based on the script from:# check_mem.pl Copyright (C) 2000 Dan Larsson # heavily modified by# Justin Ellison ## The MIT Li...
分类:
其他好文 时间:
2015-02-09 17:33:13
阅读次数:
294
How to monitor server memory usage with Nagios Remote Plugin Executor (NRPE)Last updated on September 8, 2014 Authored by Sarmed Rahman 5 Comments In ...
分类:
移动开发 时间:
2015-02-09 17:33:00
阅读次数:
240