original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-1-of-5/ANDROID UI THREAD AND ANROn the Android platform,applica...
分类:
移动开发 时间:
2014-12-26 14:36:04
阅读次数:
436
Original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-3-of-5/Continuing my series on Android non-UI thread-to-UI thre...
分类:
移动开发 时间:
2014-12-26 14:35:42
阅读次数:
256
条件变量(Condition Variables)参考资料:http://game-lab.org/posts/posix-thread-cn/#5.1条件变量是什么?条件变量为我们提供了另一种线程间同步的方法,然而,互斥量是通过控制线程访问数据来实现同步,条件变量允许线程同步是基于实际数据的值。如...
分类:
编程语言 时间:
2014-12-26 14:32:41
阅读次数:
158
In parts 1-3 of this series, I have explored three different means for an Android non-UI thread to communicate user interface updates to the UI thread...
分类:
移动开发 时间:
2014-12-26 14:32:02
阅读次数:
310
Original:http://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-2-of-5/his isthe second part of my series of blog posts on Andr...
分类:
移动开发 时间:
2014-12-26 14:31:31
阅读次数:
441
Android异步处理一:使用Thread+Handler实现非UI线程更新UI界面概述:每个Android应用程序都运行在一个dalvik虚拟机进程中,进程开始的时候会启动一个主线程(MainThread),主线程负责处理和ui相关的事件,因此主线程通常又叫UI线程。而由于Android采用UI单...
分类:
移动开发 时间:
2014-12-26 14:20:04
阅读次数:
214
在linux服务器上,用uptime、top查看系统的负载明显过高,经过排查,发现是因为代码中死循环造成的。具体的排查过程请参照本文。
使用top命令,发现load average指标值都在1附近,偏高。当然也可以用uptime。用top的好处是可以看到各个进程使用资源的一个排名。在top结果页面,输入P,以cpu消耗进行排名,发现有个java进程占用了98%的cpu资源。记下该进程的p...
分类:
Web程序 时间:
2014-12-26 13:04:20
阅读次数:
203
Python的系统模块包括:sys, os, glob, socket, threading, _thread, queue, time, timeit, subprocess, multiprocessing, signal, select, shutil, tempfile等。
大多数系统级接口集中在:sys和os两个模块。
sys模块包含:
平台与版本的信息,如sys.pl...
分类:
其他好文 时间:
2014-12-26 11:18:53
阅读次数:
184
1-Hopper Disassembler分析crash文件, (二进制文件)http://www.chinamac.com/download/mac22881.htmlhttp://www.52pojie.cn/thread-226930-1-1.htmlhttp://www.52pojie.cn...
分类:
移动开发 时间:
2014-12-26 09:36:38
阅读次数:
174
终于写完基础的splay了,嗯,还差个区间翻转没写,下次补上。 1 Program splay; 2 const maxn=2000008; 3 var l,r,fa,data,size:array[0..maxn] of longint; 4 num,i,rt,x,n:longin...
分类:
其他好文 时间:
2014-12-25 23:29:40
阅读次数:
206