条件触发: 只要输入缓冲有数据就会一直通知该事件
边缘触发: 输入缓冲收到数据时仅注册1次该事件,即使输入缓冲中还留有数据,也不会再进行注册
水平触发(level-triggered,也被称为条件触发):只要满足条件,就触发一个事件(只要有数据没有被获取,内核就不断通知你)
边缘触发(edge-triggered): 每当状态变化时,触发一个事件
举个读socket的例子,假定经过长时间的沉默后,现...
分类:
其他好文 时间:
2015-03-17 15:47:45
阅读次数:
128
GSM的计算方式:A:这个是GSM的,LTE的是否应该有所不同。ASU转换成dBm:dBm=-113+(2*ASU)All*GettheGSMSignalStrength,validvaluesare(0-31,99)asdefinedinTS*27.0078.5if(asu<=2||asu==99)level=SIGNAL_STRENGTH_NONE_OR_UNKNOWN(0);elseif(asu>=12)level=SIGNAL_STRE..
分类:
移动开发 时间:
2015-03-17 14:23:15
阅读次数:
2237
使用开源框架可以大大降低开发的难度,减少开发的周期,并且bug也少的多,软件运行起来更稳定。xUtils简介xUtils 包含了很多实用的android工具。
xUtils 支持大文件上传,更全面的http请求协议支持(10种谓词),拥有更加灵活的ORM,更多的事件注解支持且不受混淆影响…
xUitls 最低兼容android 2.2 (api level 8)下载地址:https://gith...
分类:
移动开发 时间:
2015-03-17 14:15:48
阅读次数:
202
#include
using namespace std;
#define maxn 32005
int N;
int sum[maxn] , level[maxn];
inline int lowbit(int x)
{
return x & (-x);
}
int get_sum(int x)
{
int s = 0;
while(x > 0)
{
...
分类:
编程语言 时间:
2015-03-17 12:30:25
阅读次数:
165
这篇文章写给谁?这篇文章其实是写给自己看的,毕竟我也没有什么粉丝嘛。互联网的创业浪潮如今此起彼伏,大街小巷随便一个人都可以和你聊两句互联网,充满干劲的80后以及90后都在拥入互联网的怀抱。对于像我这样的非CS应届生又应该何去何从呢?是继续本职工作领着互联网同level一半的薪水?还是投入互联网的怀抱...
分类:
其他好文 时间:
2015-03-16 20:56:02
阅读次数:
150
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary tr...
分类:
其他好文 时间:
2015-03-16 16:34:14
阅读次数:
107
Introduction(介绍)
Block objects are a C-level syntactic and runtime feature. They are similar to standard C functions, but in addition to executable code they may also contain variable bindings to...
分类:
移动开发 时间:
2015-03-16 13:00:45
阅读次数:
235
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ 9 20
...
分类:
其他好文 时间:
2015-03-16 11:03:15
阅读次数:
139
有兴趣的同学可以在博客园发短消息给我。Job Description System level software engineer intern He/She will have opportunities to participate into various software developme...
分类:
其他好文 时间:
2015-03-16 09:48:18
阅读次数:
122
1、OFBiz简介,什么是OFBiz
OFBiz is an Apache Software Foundation top level project.
Apache OFBiz全称是The ApacheOpen For Business Project。是开放的电子商务平台,是一个非常著名的开源项目,提供了创建基于最新的J2EE/XML规范和技术标准...
分类:
Web程序 时间:
2015-03-16 08:41:19
阅读次数:
464