Lecture Operating systems: Internals and design principles (6/E): Chapter 4 - William Stallings

Chapter 4 "Threads, SMP, and microkernels". This chapter examines some more advanced concepts related to process management, which are found in a number of contemporary operating systems. We show that the concept of process is more complex and subtle than presented so far and in fact embodies two separate and potentially independent concepts: one relating to resource ownership and another relating to execution. | Chapter 4 Threads, SMP, and Microkernels Dave Bremer Otago Polytechnic, . ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings These slides are intended to help a teacher develop a presentation. This PowerPoint covers the entire chapter and includes too many slides for a single delivery. Professors are encouraged to adapt this presentation in ways which are best suited for their students and environment. 1 Roadmap Threads: Resource ownership and execution Symmetric multiprocessing (SMP). Microkernel Case Studies of threads and SMP: Windows Solaris Linux 2 Processes and Threads Processes have two characteristics: 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 3 Processes and Threads The unit of dispatching is referred to as a thread | Chapter 4 Threads, SMP, and Microkernels Dave Bremer Otago Polytechnic, . ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings These slides are intended to help a teacher develop a presentation. This PowerPoint covers the entire chapter and includes too many slides for a single delivery. Professors are encouraged to adapt this presentation in ways which are best suited for their students and environment. 1 Roadmap Threads: Resource ownership and execution Symmetric multiprocessing (SMP). Microkernel Case Studies of threads and SMP: Windows Solaris Linux 2 Processes and Threads Processes have two characteristics: 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 3 Processes and Threads The unit of dispatching is referred to as a thread or lightweight process The unit of resource ownership is referred to as a process or task 4 Multithreading The ability of an OS to support multiple, concurrent paths of execution within a single process. Multithreading refers to the ability of an OS to support multiple, concurrent paths of execution within a single process. 5 Single Thread Approaches MS-DOS supports a single user process and a single thread. Some UNIX, support multiple user processes but only support one thread per process Animated Slide Onload Enlarges top-left to discuss DOS Click1: Enlarges bottom-left for Unix Single Threaded approach: The traditional approach of a single thread of execution per process, in which the concept of a thread is not recognized, examples are MS DOS (single process, single thread) Unix (multiple, single threaded processes) 6 Multithreading Java run-time environment is a single process with multiple threads Multiple processes and threads are found in Windows, Solaris, and many modern .

Không thể tạo bản xem trước, hãy bấm tải xuống
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.