1. Trang chủ
  2. » Công Nghệ Thông Tin

Operating System Concepts - Chapter 4: Threads pot

28 489 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 28
Dung lượng 195,38 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Chapter 4: Threads... 4.3 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005Single and Multithreaded Processes... 4.18 Silberschatz, Galvin and G

Trang 1

Chapter 4: Threads

Trang 2

4.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Trang 3

4.3 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Single and Multithreaded Processes

Trang 4

4.4 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Trang 5

4.5 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

User Threads

Trang 6

4.6 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Trang 7

4.7 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Multithreading Models

Trang 8

4.8 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Many-to-One

Trang 9

4.9 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Many-to-One Model

Trang 10

4.10 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Trang 11

4.11 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

One-to-one Model

Trang 12

4.12 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Trang 13

4.13 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Many-to-Many Model

Trang 14

4.14 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Two-level Model

bound to kernel thread

Trang 15

4.15 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Two-level Model

Trang 16

4.16 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Trang 17

4.17 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Semantics of fork() and exec()

Trang 18

4.18 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Thread Cancellation

thread immediately

periodically check if it should be cancelled

Trang 19

4.19 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Signal Handling

particular event has occurred

Trang 20

4.20 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Thread Pools

thread than create a new thread

bound to the size of the pool

Trang 21

4.21 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Thread Specific Data

creation process (i.e., when using a thread pool)

Trang 22

4.22 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Scheduler Activations

maintain the appropriate number of kernel threads allocated

to the application

mechanism from the kernel to the thread library

correct number kernel threads

Trang 23

4.23 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Pthreads

creation and synchronization

implementation is up to development of the library

Mac OS X)

Trang 24

4.24 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Windows XP Threads

as the context of the threads

Trang 25

4.25 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Linux Threads

of the parent task (process)

Trang 26

4.26 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Java Threads

Trang 27

4.27 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th edition, Jan 23, 2005

Java Thread States

Trang 28

End of Chapter 4

Ngày đăng: 28/06/2014, 02:20

TỪ KHÓA LIÊN QUAN