HashedWheelTimer 是根据Hashed and Hierarchical Timing Wheels: Data Structuresfor the Efficient Implementation of a Timer Facility这篇论文做出来的.HashedWheelTime...
分类:
其他好文 时间:
2015-12-08 18:00:49
阅读次数:
163
server端:pid file = /var/run/rsyncd.pidlock file = /var/run/rsyncd.locklog file = /var/log/rsyncd.logtransfer logging = yeslog format = %t %a %m %f %bsyslog facility = local3timeout = 300max connection...
分类:
其他好文 时间:
2015-09-27 16:16:23
阅读次数:
186
引用于:http://blog.csdn.net/focusonace/article/details/3108873 http://peirenlei.iteye.com/blog/305036介绍了ACE中日志系统(Logging Facility)的基本使用一、简介ACE有自己的Logg...
分类:
其他好文 时间:
2015-09-22 16:24:24
阅读次数:
261
使用syslog记录Cisco设备日志以下配置描述了如何将Cisco设备的日志发往syslog服务器device#conftdevice(config)#loggingondevice(config)#logginga.b.c.d//日志服务器的IP地址device(config)#loggingfacilitylocal1//facility标识,RFC3164规定的本地设备标识为local0-local7dev..
分类:
系统相关 时间:
2015-09-16 20:18:59
阅读次数:
277
题目大意:有N种东西,现已知每样东西的价值和数量,将N种东西分成两堆,且保证第一堆的价值不少于第二堆的前提下,使两堆的价值尽可能相等
解题思路:
考虑,由于第二堆的价值小于等于第一堆,也就是说第二堆的价值的最大值不能超过总价值的一般,把这个看成背包的容量,可以得到如下的状态转移方程
value[j]=max{value[j],value[j-facility[i]...
分类:
其他好文 时间:
2015-08-27 16:47:33
阅读次数:
182
epoll使用详解(精髓) epoll - I/O event notification facility在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。相比于select,epoll最大的好处在于它不会随着监听.....
分类:
其他好文 时间:
2015-07-27 07:04:01
阅读次数:
173
Intuition: 2D DP. Basic idea: compose square at dp[i][j] from dp[i-1][j-1]. You need 2 facility 2D matrix: accumulated horizontal\vertical number of 1...
分类:
其他好文 时间:
2015-07-21 14:37:44
阅读次数:
79
syslog函数原型 #include void openlog(const char *ident, int option, int facility); void syslog(int priority, const char *format, ...); void clos...
分类:
其他好文 时间:
2015-07-18 18:18:05
阅读次数:
156
Unique pointer:
Manages the storage of a pointer, providing a limited garbage-collection facility, with little to no overhead over built-in pointers (depending on the deleter used).
These obje...
分类:
其他好文 时间:
2015-06-18 22:20:18
阅读次数:
182
The SQL Trace facility and TKPROF let you accurately assess the efficiency of the SQL statements an application runs. For best results, use these tools withEXPLAIN PLAN rather than using EXPLAIN PLAN ...
分类:
数据库 时间:
2015-06-17 11:38:24
阅读次数:
184