上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 103 下一页
摘要: http://blog.csdn.net/liaodehong/article/details/51206607 作者:IBM 刘欣 我是一个线程,我一出生就被编了个号: 0×3704,然后被领到一个昏暗的屋子里, 这里我发现了很多和我一模一样的同伴。 我身边的同伴0×6900 待的时间比较长, 他 阅读全文
posted @ 2017-05-03 19:28 zzfx 阅读(163) 评论(0) 推荐(0)
摘要: 内核掌管一切,可以直接读写线程数据结构 阅读全文
posted @ 2017-05-03 19:20 zzfx 阅读(226) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/yxzfscg/p/4758728.html 三种线程——内核线程、轻量级进程、用户线程 内核线程 内核线程就是内核的分身,一个分身可以处理一件特定事情。这在处理异步事件如异步IO时特别有用。内核线程的使用是廉价的,唯一使用的资源就是内核栈和上下文切换时 阅读全文
posted @ 2017-05-03 18:15 zzfx 阅读(1188) 评论(0) 推荐(0)
摘要: 一方(通过同步变量、内核变量)告诉另一方自己的状态。 通信实体间传递的控制信号。有别于数据信号。 同步变量是并发机制的组成部分。 锁:一人一个坑位 读写变量:公告板 屏障:坦克战斗小组成员都就绪后可以战斗,够五个走一波 信号量:还有3个名额 条件变量:太复杂最好不用(swich) 阅读全文
posted @ 2017-05-03 17:57 zzfx 阅读(312) 评论(0) 推荐(0)
摘要: https://en.wikipedia.org/wiki/Thread_control_block Thread Control Block (TCB) is a data structure in the operating system kernel which contains thread 阅读全文
posted @ 2017-05-02 18:52 zzfx 阅读(837) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/liujiayu2/article/details/46517301 线程的上下文 线程的上下文本质上是一组处理器的寄存器,有正在执行程序中的指针及堆栈指针。上下文及其转换的过程根据处理器的结构不同会有所不同。我们可以调用内核调试器的lkd> dt nt!_ 阅读全文
posted @ 2017-05-02 18:45 zzfx 阅读(637) 评论(0) 推荐(0)
摘要: 多线程的start_routine指明了CPU的一个可执行流; 多线程的上线文说明了执行流现在的运行情况; 多线程的属性说明了上线文的数据结构。 https://computing.llnl.gov/tutorials/pthreads/ pthread_create arguments: thre 阅读全文
posted @ 2017-05-02 17:37 zzfx 阅读(185) 评论(0) 推荐(0)
摘要: https://computing.llnl.gov/tutorials/pthreads/ Technically, a thread is defined as an independent stream of instructions that can be scheduled to run 阅读全文
posted @ 2017-05-02 17:33 zzfx 阅读(242) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/hnrainll/archive/2011/04/20/2022149.html #include<stdlib.h> #include<stdio.h> #include<unistd.h> #include<pthread.h> void clean 阅读全文
posted @ 2017-05-02 17:17 zzfx 阅读(534) 评论(0) 推荐(0)
摘要: 我思故我在(I think, therefore I am)的意思是“思考的我(I as the thinking being)是我(the subject)的第一真实所在”。这个结论来自于一个简单反证:如果我试图怀疑这个“思考的我”的真实性,那么“怀疑”这个行为本身成为思考的一部分,从而证明了“思 阅读全文
posted @ 2017-04-27 23:44 zzfx 阅读(1042) 评论(0) 推荐(0)
摘要: https://zhidao.baidu.com/question/680100884243341852.html 所谓编程思想,就是指用计算机来解决人们实际问题的思维方式。 好比学习一门课程一样,首先我们应该对课程的基本概念熟悉掌握,然后学习了由定义得出的结论,等到一本书学完后,我们最重要的就是只 阅读全文
posted @ 2017-04-27 19:55 zzfx 阅读(501) 评论(0) 推荐(0)
摘要: http://www.sxt.cn/u/328/blog/2410 什么是面向过程? 面向过程(Proceduce Oriented)是一种面向过程的思维方式。当我们面临一个问题时,我们首先关注处理这个问题的流程(过程)。 比如,我们面临一个问题:“将大象装入冰箱”。最常用的思路就是直接关注过程,这 阅读全文
posted @ 2017-04-27 00:41 zzfx 阅读(2600) 评论(1) 推荐(0)
摘要: http://blog.csdn.net/hjf19790118/article/details/6919578 面向过程 → 面向对象 → 面向组件 → 面向服务 约翰·巴库斯(John Backus) FORTRAN语言创始人 尼古拉斯·沃思(Niklaus Wirth) 结构化编程思想的创始人 阅读全文
posted @ 2017-04-27 00:34 zzfx 阅读(453) 评论(0) 推荐(0)
摘要: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Multithreading/CreatingThreads/CreatingThreads.html#//apple_ref/doc/uid/100 阅读全文
posted @ 2017-04-24 16:20 zzfx 阅读(201) 评论(0) 推荐(0)
摘要: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Multithreading/AboutThreads/AboutThreads.html#//apple_ref/doc/uid/10000057i 阅读全文
posted @ 2017-04-24 15:33 zzfx 阅读(155) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/xiaofei0859/article/details/5818511 线程安全: 线程安全函数:在C语言中局部变量是在栈中分配的,任何未使用静态数据或其他共享资源的函数都是线程安全的。 使用全局变量的函数是非线程安全的。 使用静态数据或其他共享资源的函数, 阅读全文
posted @ 2017-04-19 18:59 zzfx 阅读(376) 评论(0) 推荐(0)
摘要: 临界区是访问共享数据的代码块。 线程安全,线程共享数据的安全访问。 线程安全:对共享资源的有序访问。 http://www.cnblogs.com/wind-net/archive/2012/08/29/2661693.html 每个进程中访问临界资源的那段代码称为临界区(Critical Sect 阅读全文
posted @ 2017-04-19 18:56 zzfx 阅读(295) 评论(0) 推荐(0)
摘要: https://developer.apple.com/library/content/documentation/General/Conceptual/ConcurrencyProgrammingGuide/OperationQueues/OperationQueues.html#//apple_ 阅读全文
posted @ 2017-04-19 17:22 zzfx 阅读(211) 评论(0) 推荐(0)
摘要: Core Animation 是对现有图片的操作函数。 https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.h 阅读全文
posted @ 2017-04-19 15:55 zzfx 阅读(139) 评论(0) 推荐(0)
摘要: Working with High-Resolution Images Layers do not have any inherent knowledge of the resolution of the underlying device’s screen. A layer simply stor 阅读全文
posted @ 2017-04-19 15:50 zzfx 阅读(394) 评论(0) 推荐(0)
上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 103 下一页