GCD是基于C语言的底层API,用Block定义任务用起来非常灵活便捷.GCD的基本思想是就将操作放在队列中去执行
(1)操作使用Blocks定义 (2)队列负责调度任务执行所在的线程以及具体的执行时间
(3)队列的特点是先进先出(FIFO)的,新添加至对列的操作都会排在队尾关于多线程的一些概念:G...
分类:
其他好文 时间:
2014-06-13 13:09:40
阅读次数:
309
GCD是基于C语言的底层API,用Block定义任务用起来非常灵活便捷.
GCD的基本思想是就将操作放在队列中去执行 (1)操作使用Blocks定义 (2)队列负责调度任务执行所在的线程以及具体的执行时间
(3)队列的特点是先进先出(FIFO)的,新添加至对列的操作都会排在队尾关于多线程的一些概念:...
分类:
其他好文 时间:
2014-06-13 13:06:33
阅读次数:
279
今天在Code4App上看了一个GCD倒计时的Demo,觉得不错代码贴出来备用-(void)startTime{ __block int timeout =
30; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DI...
分类:
其他好文 时间:
2014-06-13 06:15:01
阅读次数:
208
css:.wraper{ width:980px; height:2048px; margin:0
auto; background:#ccc; }/*返回头部*/#backToTop a{ display:block;
cursor:pointer;width:25px; height:26px;...
分类:
Web程序 时间:
2014-06-12 21:52:32
阅读次数:
362
.destination1 .current{ display:block;
animation:danru 2s linear infinite; -webkit-animation:danru 2s linear alternate
; ...
分类:
其他好文 时间:
2014-06-12 21:47:05
阅读次数:
344
BACKGROUND OF THE INVENTION The use of a cache
memory with a processor facilitates the reduction of memory access time. The
fundamental idea of cache ...
分类:
其他好文 时间:
2014-06-12 20:04:48
阅读次数:
441
内存对齐,memory
alignment.为了提高程序的性能,数据结构(尤其是栈)应该尽可能地在自然边界上对齐。原因在于,为了访问未对齐的内存,处理器需要作两次内存访问;然而,对齐的内存访问仅需要一次访问。内存对齐一般讲就是cpu
access memory的效率(提高运行速度)和准确性(在一些条...
分类:
其他好文 时间:
2014-06-12 19:25:28
阅读次数:
305
一、摘要 An Adapter object acts as a bridge between
anAdapterViewand the underlying data for that view. The Adapter provides access
to the data items. Th....
分类:
移动开发 时间:
2014-06-12 18:27:55
阅读次数:
503