会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
soildong
博客园
首页
新随笔
联系
管理
订阅
2017年7月24日
[JAVA]线程安全volatile
摘要: 锁提供两种特性: 1.互斥(mutual exclusion): 多线程只有一个能操作 2.可见性(visibility):锁释放之前的修改对于随后获得该锁的另一个线程是可见的 volatile只具有可见性,不具有互斥性。
阅读全文
posted @ 2017-07-24 22:37 firerdong
阅读(115)
评论(0)
推荐(0)
2017年7月23日
转-
摘要: Android四种启动模式 http://www.cnblogs.com/fanchangfa/archive/2012/08/25/2657012.html Android 关闭多个视图Intent.FLAG_ACTIVITY_CLEAR_TOP用法 http://blog.csdn.net/lv
阅读全文
posted @ 2017-07-23 22:11 firerdong
阅读(77)
评论(0)
推荐(0)
2017年7月20日
[JAVA]快速判断一个int值是几位数-转
摘要: final static int[] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, Integer.MAX_VALUE };static int sizeOfInt(int x) { for
阅读全文
posted @ 2017-07-20 09:31 firerdong
阅读(2763)
评论(0)
推荐(0)
2017年1月23日
[AI学习] MAC搭建TendorFlow
摘要: 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
阅读全文
posted @ 2017-01-23 17:23 firerdong
阅读(208)
评论(0)
推荐(0)
2016年7月24日
[JAVA]String StringBuffer StringBuilder
摘要: String 字符串常量 StringBuffer、StringBuilder 字符串变量 字符串拼接时的速度:StringBuilder > StringBuffer > String StringBuffer线程安全 StringBuilder线程不安全,所以快 而String时创建新的字符串,
阅读全文
posted @ 2016-07-24 06:52 firerdong
阅读(110)
评论(0)
推荐(0)
2016年7月19日
[JAVA]随机省市
摘要: String citys[] = {"北京","广东","山东","江苏","河南","上海","河北","浙江","香港","山西","陕西","湖南","重庆","福建","天津","云南","四川","广西","安徽&quo
阅读全文
posted @ 2016-07-19 15:03 firerdong
阅读(1940)
评论(1)
推荐(1)
2015年9月23日
mac 配置纪录
摘要: 1.在右键添加 在当前文件夹打开terminal终端 System Preferences -> Keyboard -> Shortcuts -> Services -> New Terminal at Folders/New Terminal Tab at Folder 都勾上
阅读全文
posted @ 2015-09-23 21:11 firerdong
阅读(109)
评论(0)
推荐(0)
2015年9月8日
[android]android ndk 编译错误
摘要: Android NDK: NDK Application 'local' targets unknown ABI(s): armeabi armeabi-v7a x86 Android NDK: Please fix the APP_ABI definition in ...jni/Applicat
阅读全文
posted @ 2015-09-08 11:05 firerdong
阅读(3133)
评论(0)
推荐(0)
2015年9月1日
C++ error: 'string' does not name a type
摘要: include一个定义结构体的文件typedef.h编译出现了error: 'string' does not name a type查资料http://blog.csdn.net/niro_z/article/details/8028996得到提示,要在string改为std::string就OK...
阅读全文
posted @ 2015-09-01 10:51 firerdong
阅读(19017)
评论(0)
推荐(1)
2015年8月31日
C++ 函数模板
摘要: 1.不需要参数和返回值的函数模板class Test { public: template void getInfo();}; template void Test::getInfo(){ A a = new A(); B b = new B(); T...
阅读全文
posted @ 2015-08-31 15:41 firerdong
阅读(95)
评论(0)
推荐(0)
下一页
公告
点击右上角即可分享