摘要:
锁提供两种特性: 1.互斥(mutual exclusion): 多线程只有一个能操作 2.可见性(visibility):锁释放之前的修改对于随后获得该锁的另一个线程是可见的 volatile只具有可见性,不具有互斥性。 阅读全文
摘要:
Android四种启动模式 http://www.cnblogs.com/fanchangfa/archive/2012/08/25/2657012.html Android 关闭多个视图Intent.FLAG_ACTIVITY_CLEAR_TOP用法 http://blog.csdn.net/lv 阅读全文
摘要:
final static int[] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, Integer.MAX_VALUE };static int sizeOfInt(int x) { for 阅读全文
摘要:
1.MAC自带了python2.7 2.安装pip sudo easy_install pip 3.安装 sudo easy_install --upgrade six sudo pip install --upgrade https://storage.googleapis.com/tensorf 阅读全文
摘要:
String 字符串常量 StringBuffer、StringBuilder 字符串变量 字符串拼接时的速度:StringBuilder > StringBuffer > String StringBuffer线程安全 StringBuilder线程不安全,所以快 而String时创建新的字符串, 阅读全文
摘要:
String citys[] = {"北京","广东","山东","江苏","河南","上海","河北","浙江","香港","山西","陕西","湖南","重庆","福建","天津","云南","四川","广西","安徽&quo 阅读全文
摘要:
1.在右键添加 在当前文件夹打开terminal终端 System Preferences -> Keyboard -> Shortcuts -> Services -> New Terminal at Folders/New Terminal Tab at Folder 都勾上 阅读全文
摘要:
Android NDK: NDK Application 'local' targets unknown ABI(s): armeabi armeabi-v7a x86 Android NDK: Please fix the APP_ABI definition in ...jni/Applicat 阅读全文
摘要:
include一个定义结构体的文件typedef.h编译出现了error: 'string' does not name a type查资料http://blog.csdn.net/niro_z/article/details/8028996得到提示,要在string改为std::string就OK... 阅读全文
摘要:
1.不需要参数和返回值的函数模板class Test { public: template void getInfo();}; template void Test::getInfo(){ A a = new A(); B b = new B(); T... 阅读全文