首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

线程与过程的不同

2014-06-03 
线程与进程的不同How threads differ from processesThreads?differ from traditional?multitasking?opera

线程与进程的不同

How threads differ from processes

Threads?differ from traditional?multitasking?operating system processes?in that:

  • processes are typically independent, while threads exist as subsets of a process
  • processes carry considerably more?state?information than threads, whereas multiple threads within a process share process state as well as?memory?and other?resources
  • processes have separate?address spaces, whereas threads share their address space
  • processes interact only through system-provided?inter-process communication?mechanisms
  • Context switching?between threads in the same process is typically faster than context switching between processes.

热点排行