以 alien_8.87.tar.gz 为例:下载、安装 alien_8.87.tar.gz [root@shyn ~]# wget http://ftp.de.debian.org/debian/pool/main/a/alien/alien_8.87.tar.gz [root@shyn ~...
分类:
系统相关 时间:
2014-07-08 23:14:47
阅读次数:
349
glusterfs中的内存管理方式: 1 struct mem_pool * 2 mem_pool_new_fn (unsigned long sizeof_type, 3 unsigned long count, char *name) 4 { 5 ...
分类:
其他好文 时间:
2014-07-08 21:50:47
阅读次数:
441
题目
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant spac...
分类:
其他好文 时间:
2014-07-08 13:46:26
阅读次数:
205
it is much easier to get the same result through PHP because the PHP language offers some global constant variables and built-in functions....
分类:
Web程序 时间:
2014-07-08 12:48:07
阅读次数:
196
Sort a linked list in O(n log n) time using constant space complexity.merge sort、heap sort和quick sort都是O(nlgn),但是mergesort和quicksort都是递归的,不是constant s...
分类:
其他好文 时间:
2014-07-06 21:07:41
阅读次数:
210
1. automic differentation的含义2. constant folding3. memory aliasing4. broadcasting 是个难点5. shared variable6. function函数7.
分类:
其他好文 时间:
2014-07-05 17:51:00
阅读次数:
325
#400/500错误重试
#
#当服务返回400/500状态且当前pool中有存活的node重置http请求,并重新选择pool中的node。
#直到返回正常代码或者轮询完所有存活node后,接受新的http请求
whenCLIENT_ACCEPTED{
setretry0
}
whenHTTP_REQUEST{
sethttp_request[HTTP::request]
}
wh..
分类:
其他好文 时间:
2014-07-04 00:48:07
阅读次数:
681
OracleSharePool内部管理机制SHAREPOOL利用堆(HEAP)的内存管理方式管理,在物理上由多个内存区(EXTENT)组成,内存区又由多个不同大小的CHUNK组成。而CHUNK又有可重用和空闲之分,并且它们分别有LRULIST、FREELIST、RESERVEDLIST串联起来。堆管理SharedPool是利用堆内存管理方..
分类:
数据库 时间:
2014-07-02 16:19:17
阅读次数:
432
【题目】
Sort a linked list in O(n log n) time using constant space complexity.
【题意】
排序一个链表,要求时间复杂度O(nlogn),使用常量空间
【思路】
nlogn的复杂度,用归并排序求解...
分类:
其他好文 时间:
2014-07-02 09:25:40
阅读次数:
252