码迷,mamicode.com
首页 >  
搜索关键字:note    ( 7358个结果
《Linux Device Drivers》第十章 中断处理——note
概述:系统要及时的感知硬件的状态,通常有两种方式:一种是轮询;一种是通过响应硬件中断。前者会浪费处理器的时间,而后者不会。...
分类:系统相关   时间:2014-09-28 11:24:01    阅读次数:325
《Linux Device Drivers》 第七章 时间、延时及延缓操作——note
度量时间差 内核通过定时器中断来跟踪时间流时钟中断由系统定时硬件以周期性的间隔产生,这个间隔由内核根据HZ的值设定,在常见的x86 PC平台上,默认定义为1000jiffies_64unsigned long jiffies使用jiffies计数器 int time_after(unsigned long a, unsigned long b);int time_before(...
分类:系统相关   时间:2014-09-27 23:20:20    阅读次数:448
《Linux Device Drivers》第五章 并发和竞态——note
并发及其管理 竞态通常作为对资源的共享访问结果而产生当两个执行线程需要访问相同的数据结构(或硬件资源)时,混合的可能性就永远存在只要可能就应该避免资源的共享共享通常是必需的,硬件资源本质上就是共享的访问管理的常见技术称为“锁定”或者“互斥” 信号量和互斥体 建立临界区:在任意给定的时刻,代码只能被一个线程执行可以使用一种锁定机制,当进程在等待对临界区的访问时,此机制可让进程进入休眠状...
分类:系统相关   时间:2014-09-27 23:04:20    阅读次数:297
Single Number II
题目描述:Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime...
分类:其他好文   时间:2014-09-27 18:53:40    阅读次数:204
eclipse default handler IHandler interface “the chosen operation is not enabled”
NOTE: These two methods: Tip: Subclass AbstractHandler rather than implementing IHandler. but you can use it to the below section you need to set: IHa...
分类:系统相关   时间:2014-09-27 13:59:39    阅读次数:262
MonkeyRunner创建一个Note的实例
之前的系列给出了Appium,Robotium,Instrumentation和UIAutomator创建一个Note实例的例子: 《Appium创建一个Note的实例》 《Robotium创建一个Note的实例》 《UIAutomator创建一个Note的实例》 《SDK Instrumentation创建一个Note的实例》 那么用MonkeyRunner又是如何实现这些功能...
分类:其他好文   时间:2014-09-27 13:40:09    阅读次数:206
json格式字符串用jquery.parseJSON()出现的问题 Uncaught SyntaxError: Unexpected token ' Uncaught SyntaxError: Unexpected number (index)
Unexpected number(index)的错误用的json字符串如var jsonStr = "{1:'北京note备注信息',2:'上海note备注信息',3:'广东note备注信息',4:'深圳note备注信息4',5:'天津note备注信息5',6:'湖北note备注信息6',7:'重...
分类:Web程序   时间:2014-09-26 19:36:58    阅读次数:455
安装CentOS虚拟机 starting postfix failed 错误
The full path to the file is ‘/etc/postfix/main.cf‘ Just add or modify your hostname and restart the postfix service by running ‘service postfix restart‘. Please note mydomain.net. is an invalid ho...
分类:其他好文   时间:2014-09-26 12:24:59    阅读次数:614
6661 Equal Sum Sets(DP)
Let us consider sets of positive integers less than or equal to n. Note that all elements of a set are different. Also note that the order of elements doesnt matter, that is, both {3, 5, 9} and {5, 9...
分类:其他好文   时间:2014-09-26 02:35:48    阅读次数:191
SDK Instrumentation创建一个Note的实例
除了高层框架如Robotium的solo,我们也可以直接调用SDK底层的提供的Instrumentation的API来实现如前几篇文章描述的创建一个note的功能。总所周知之Robotium就是基于Instrumentation的框架高层抽象实现的一个项目,所以对比《Robotium创建一个Note的实例》,我们可以看到robotium的实现比起直接调用Instrumetnation简介了很多。这...
分类:其他好文   时间:2014-09-25 12:07:28    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!