操作系统Chapter04_OSThreads, SMP, and Microkernels知识讲稿.ppt

操作系统Chapter04_OSThreads, SMP, and Microkernels知识讲稿.ppt

  1. 1、本文档共48页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
操作系统Chapter04_OSThreads, SMP, and Microkernels知识讲稿.ppt

* Benefits of a Microkernel Organization Portability Changes needed to port the system to a new processor is changed in the microkernel - not in the other services Reliability Modular design Small microkernel can be rigorously tested * Benefits of Microkernel Organization Distributed system support Message are sent without knowing what the target machine is Object-oriented operating system Components are objects with clearly defined interfaces that can be interconnected to form software * Microkernel Design Low-level memory management Mapping each virtual page to a physical page frame * Microkernel Design Interprocess communication I/O and interrupt management * Threads, SMP, and Microkernels Chapter 4 * 4.1 Process and Thread - Process Resource ownership - process includes a virtual address space to hold the process image Scheduling/execution- follows an execution path that may be interleaved with other processes These two characteristics are treated independently by the operating system * Process and Thread Dispatching is referred to as a thread or lightweight process (LWP) Resource of ownership is referred to as a process or task 线程是进程中实施调度和分派的基本单位。 * MS-DOS UNIX Windows, Solaris, Linux Java 4.1.1 Multithreads * * Benefits of Threads Less Spending Takes less time to create a new thread than a process Less time to terminate a thread than a process Less time to switch between two threads within the same process Since threads within the same process share memory and files, they can communicate with each other without invoking the kernel Concurrency Improvement * Uses of Threads in a Single-User Multiprocessing System Foreground to background work Asynchronous processing Speed of execution Modular program structure * Thread States States associated with a change in thread state Spawn Spawn another thread Block Unblock Finish Deallocate register context and stacks * Adobe PageMaker * User-Level Threads All thread management is done by the applicati

文档评论(0)

youngyu0329 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档