摘要: 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 阅读(839) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/liujiayu2/article/details/46517301 线程的上下文 线程的上下文本质上是一组处理器的寄存器,有正在执行程序中的指针及堆栈指针。上下文及其转换的过程根据处理器的结构不同会有所不同。我们可以调用内核调试器的lkd> dt nt!_ 阅读全文
posted @ 2017-05-02 18:45 zzfx 阅读(640) 评论(0) 推荐(0)
摘要: 多线程的start_routine指明了CPU的一个可执行流; 多线程的上线文说明了执行流现在的运行情况; 多线程的属性说明了上线文的数据结构。 https://computing.llnl.gov/tutorials/pthreads/ pthread_create arguments: thre 阅读全文
posted @ 2017-05-02 17:37 zzfx 阅读(188) 评论(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 阅读(247) 评论(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 阅读(537) 评论(0) 推荐(0)