我们首先来看HandlerThread的创建过程,public class HandlerThread extends Thread { @Override
public void run() {
mTid = Process.myTid();
Looper.prepare();
synchronized (this) {...
分类:
移动开发 时间:
2015-03-17 15:48:11
阅读次数:
176
这个是一款不错的帮美女斯衣服游戏完整版游戏源码<ignore_js_op><ignore_js_op>源码项目下载:http://code.662p.com/view/620.html详细说明:http://android.662p.com/thread-39-1-1.html
分类:
其他好文 时间:
2015-03-17 10:40:20
阅读次数:
121
flood_it
流行的Flood it游戏的Android版
游戏玩法:
按下屏幕下方的颜色按钮,左上角的色块就会变颜色。只要把整片色块变成同色就赢了。
效果图
源码项目下载:http://code.662p.com/view/4877.html
详细说明:http://android.662p.com/thread-3245-1-1.html...
分类:
移动开发 时间:
2015-03-17 10:37:01
阅读次数:
113
一、创建多线程的五种方式1.开启线程的方法一 NSThread * thread=[[NSThread alloc] initWithTarget:self selector:@selector(_update) object:nil];2.开启线程的方法二 [NSThread deta...
分类:
移动开发 时间:
2015-03-17 09:01:53
阅读次数:
177
A:一个master 线程(innodb 几乎在这个线程上实现有所有功能)B:一个lock 监控线程C:一个错误监控线程D:四个IO线程(insert buffer thread\log thread\write thread\read thread) 在windows 平台下可以通过 innod....
分类:
数据库 时间:
2015-03-17 00:38:03
阅读次数:
367
private static async void Worker() { Console.Write("main thread id is :{0}",Thread.CurrentThread.ManagedThreadId); while...
USE (数据库实例)hhwz;GO sp_change_users_login @Action='update_one', @UserNamePattern='数据库用户', @LoginName='登录名';GO;参考:http://www.121ask.com/thread-5695-1.ht...
分类:
数据库 时间:
2015-03-17 00:23:25
阅读次数:
236
记录原因:在开发中查看了一些优秀的图片下载框架,经常用到Synchronized同步,由于自己对同步有点模糊了,特此记录,方便下次查阅!
synchronized分为同步方法和同步代码块。
synchronized锁定的内容可以是具体的对象也可以是当前类的所有对象
synchronized可以有static变量锁和非static变量锁
1.同步方法
/**
* 对象锁...
分类:
其他好文 时间:
2015-03-16 23:14:50
阅读次数:
177
class ManyThreads2 { private int j = 0; public synchronized void inc() { j++; System.out.println(Thread.currentThread().getName()...
分类:
编程语言 时间:
2015-03-16 21:01:59
阅读次数:
175
UBOOT链接http://www.right.com.cn/forum/thread-136444-1-1.htmlOpenwrt下载链接http://www.right.com.cn/forum/thread-114913-1-1.html安装PHPMYSQLhttp://www.right.com.cn/forum/thread-89216-1-1.htmlhttp://bbs.xiaomi.cn/thread-9518651-1-1.htmlopenwrt+uhttp+php环境..
分类:
其他好文 时间:
2015-03-16 19:43:51
阅读次数:
167