码迷,mamicode.com
首页 >  
搜索关键字:capacity    ( 831个结果
JavaSE 高级 第04节 StringBuffer类
2016-07-24 1,StringBuffer简介 StringBuffer sb=new StringBuffer(); System.out.println(sb.capacity()); StringBuffer sb2=new StringBuffer("abc"); System.ou ...
分类:编程语言   时间:2016-07-24 17:43:56    阅读次数:155
Rehashing
The size of the hash table is not determinate at the very beginning. If the total size of keys is too large (e.g. size >= capacity / 10), we should do ...
分类:其他好文   时间:2016-07-23 07:27:57    阅读次数:121
innodb_io_capacity >=innodb_lru_scan_depth*inoodb_buffer_pool_instances
innodb_lru_scan_depth:每个缓冲池刷脏页的能力 innodb_io_capacity: iops inoodb_buffer_pool_instances=8 :缓冲池的个数 .关系: innodb_io_capacity >= innodb_lru_scan_depth * i ...
分类:数据库   时间:2016-07-22 18:38:00    阅读次数:524
yarn资源调度设置
下面配置的是两个队列default和etl,default队列分配20%的处理能力,etl队列分配80%的处理能力,用户dba只能向default队列提交作业,用户etl只能向etl队列提交作业,dba用户组只能向default队列提交任务:yarn.scheduler.capacity.maximum-am-resource-percent=0.2--AM可以占用资..
分类:其他好文   时间:2016-07-20 13:40:49    阅读次数:2458
C#实现对远程服务器的内存和CPU监控
C#实现对远程服务器的内存和CPU监控小记 1、 主要使用到的组件有System.Management.dll 2、 主要类为 :ManagementScope 连接远程服务器示例代码: 1 private const string PROPERTY_CAPACITY = "Capacity"; 2 ...
分类:Windows程序   时间:2016-07-04 21:48:40    阅读次数:872
LRU设计
list是双向链表,map保存key对应到list中的迭代器的位置,list保存<key,value> class LRUCache{ public: LRUCache(int capacity) { c = capacity; } int get(int key) { if (mymap.coun ...
分类:其他好文   时间:2016-07-03 17:08:20    阅读次数:152
Preparing for the intervies of FLAG and USDA
2,Array (1)How to implement Java ArrayList public class ArrayList { private int capacity; private int size; private int[] data; public ArrayList(int c ...
分类:其他好文   时间:2016-06-22 10:31:17    阅读次数:200
java集合类源码剖析
集合类源码剖析hashmap初始化 默认容量DEFAULT_INITIAL_CAPACITY是16 默认负载因子DEFAULT_LOAD_FACTOR是0.75 若指定初始容量initialCapacity,如果大于MAXIMUM_CAPACITY,会重置为MAXIMUM_CAPACITY,最终的容量一般不等于initialCapacity,因为hashmap的容量一定是2的幂int capacit...
分类:编程语言   时间:2016-06-21 07:32:30    阅读次数:173
java.nio.ByteBuffer中flip,rewind,clear方法的区别
对缓冲区的读写操作首先要知道缓冲区的下限、上限和当前位置。下面这些变量的值对Buffer类中的某些操作有着至关重要的作用:limit:所有对Buffer读写操作都会以limit变量的值作为上限。position:代表对缓冲区进行读写时,当前游标的位置。capacity:代表缓冲区的最大容量(一般新建... ...
分类:编程语言   时间:2016-06-10 16:24:28    阅读次数:265
Greedy Algorithoms--box
weight=[20,10,26,15]_list = zip(weight, range(0, len(weight)))capacity =70 _list.sort(key=lambda item:item[0])print _list_list_load = []def load(item) ...
分类:其他好文   时间:2016-06-07 08:54:52    阅读次数:189
831条   上一页 1 ... 53 54 55 56 57 ... 84 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!