计算机基础知识问答
2012-11-25 11:30
232 查看
线程和进程的区别和联系(What's the difference between process and thread? What kind of information does thread maintain? its own stack? heap?How and when to do a context switch? How do you handle an time slice interrupt?What are the possible pitfalls for multi-thread programming?)
Diff threads in the same process share the same address space. Different processes do not.
Different threads have their own stack. as do different processes. Thread switch is like a jump in the code since no TLB flush is required. Context switch happens when the processor schedules a new process to execute. (TLB:Translation lookaside buffer,即旁路转换缓冲,或称为页表缓冲;里面存放的是一些页表文件(虚拟地址到物理地址的转换表))
Possible pitfalls for mt : locking, synchronization
Diff threads in the same process share the same address space. Different processes do not.
Different threads have their own stack. as do different processes. Thread switch is like a jump in the code since no TLB flush is required. Context switch happens when the processor schedules a new process to execute. (TLB:Translation lookaside buffer,即旁路转换缓冲,或称为页表缓冲;里面存放的是一些页表文件(虚拟地址到物理地址的转换表))
Possible pitfalls for mt : locking, synchronization
相关文章推荐
- 动物家园计算机病毒基础知识有奖问答
- 计算机网络基础知识总结
- linux 鸟哥的私房菜(第三版)每章总结 第一章 计算机基础知识
- 计算机基础知识
- 全国计算机技术与软件专业技术资格(水平)考试【软件评测师】-考试内容总结(一)计算机系统构成及硬件基础知识
- 计算机基础知识(计算机概述)
- 计算机基础知识
- 南邮 OJ 1958 计算机基础知识大赛 5
- 【零基础向】软考之路(第一章)计算机系统知识(第五节)
- 计算机科学基础知识(六)理解栈帧
- linux系统编程之基础必备(一):计算机体系结构一点基础知识
- 计算机入门基础知识
- 计算机基础知识:什么是位、字节、字、KB、MB
- 计算机系统构成及硬件基础知识
- Java_计算机基础知识
- 大数据基础知识问答----spark篇,大数据生态圈
- python小白之计算机基础知识
- 存储区域网络基础知识普及问答
- 计算机网络基础知识总结
- [软件开发必备]计算机基础知识