码迷,mamicode.com
首页 >  
搜索关键字:counter    ( 1583个结果
深入理解Java虚拟机笔记---内存区域
Java虚拟机在执行Java程序过程中会把它所管理的内存划分为若干个不同的数据区域。这些区域有自各的用途,以及创建及销毁时间,有的区域随着虚拟机进程的启动而存在,有些区域则是依赖用户线程的启动和结束而建立和销毁。根据《Java虚拟机规范(第2版)》规定,Java虚拟机管理的内存区域包括以下几个运行时数据区域,下如图 1.程序计数器(Program Counter Register)  ...
分类:编程语言   时间:2014-12-05 17:26:15    阅读次数:246
ServletContextListener监听器
public class Counter{ private int count; public Counter(){} public Counter(int count){ this.count=count; } public int getCount(){ return count; } public void setCount(){ this.count=count; }...
分类:其他好文   时间:2014-12-04 21:45:42    阅读次数:173
java判断某个字符串包含某个字符串的个数
/** * 判断str1中包含str2的个数 * @param str1 * @param str2 * @return counter */ public static int countStr(String str1, String...
分类:编程语言   时间:2014-12-03 12:24:12    阅读次数:263
深入理解java虚拟机-第二章
第2章 Java内存区域与内存溢出异常运行数据区域 1、程序计数器(Program Counter Register) 是一块较小的内存空间,它可以看作是当前线程所执行的字节码的行号指示器。 2、Java虚拟机栈(Stack)线程私有,每一个方法调用时都会创建一个栈帧(Stack Frame)用.....
分类:编程语言   时间:2014-12-02 14:58:41    阅读次数:177
[leetcode]Sort Colors
Givenanarraywithnobjectscoloredred,whiteorblue,sortthemsothatobjectsofthesamecolorareadjacent,withthecolorsintheorderred,whiteandblue.Here,wewillusetheintegers0,1,and2torepresentthecolorred,white,andbluerespectively.Note:Youarenotsupposetousethelibrary‘ssor..
分类:其他好文   时间:2014-11-30 17:10:10    阅读次数:148
UVA 11754 Code Feat (枚举,中国剩余定理)
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraudCCode FeatThe government hackers at CTU (Counter-Terrorist Unit) have learned some things about the co...
分类:其他好文   时间:2014-11-27 23:30:24    阅读次数:401
Android - 插入数据库(SQLite)错误
插入数据库(SQLite)错误本文地址: http://blog.csdn.net/caroline_wendyError:android.database.sqlite.SQLiteException: no such table: step (code 1): , while compiling: INSERT INTO step(duration,date,counter) VALUES (...
分类:移动开发   时间:2014-11-26 11:31:41    阅读次数:156
内存管理-黄金法则
1、内存管理-黄金法则The basic rule to apply is everything that increases the reference counter with alloc, [mutable]copy[withZone:] or retain is in charge of t...
分类:其他好文   时间:2014-11-25 20:31:26    阅读次数:288
【转】MapReduce:默认Counter的含义
MapReduce Counter为提供我们一个窗口:观察MapReduce job运行期的各种细节数据。今年三月份期间,我曾经专注于MapReduce性能调优工作,是否优化的绝大多评估都是基于这些Counter的数值表现。MapReduce自带了许多默认Counter,可能有些朋友对它们有些疑问,...
分类:其他好文   时间:2014-11-23 17:26:20    阅读次数:181
Linux_C pthread 关于多线程一个简单的程序
1 /******************************************************************************* 2 * twordcount.c threaded word counter for two files 3 */ 4 #inc...
分类:编程语言   时间:2014-11-23 15:51:45    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!