TAILIEUCHUNG - Windows Internals Covering Windows Server 2008 and Windows Vista phần 7

Di chuyển mã này vào chế độ hạt nhân có nghĩa là ít hơn quá trình chuyển đổi giữa người dùng và chế độ hạt nhân, và nó cho phép để quản lý các hồ bơi thread chính nó và không phải hệ thống các cơ chế đằng sau nó. Nó cũng cung cấp các lợi ích khác, chẳng hạn như khả năng điều khiển từ xa | 400 Windows Internals Fifth Edition Thread States Before you can comprehend the thread-scheduling algorithms you need to understand the various execution states that a thread can be in. Figure 5-14 illustrates the state transitions for threads. The numeric values shown represent the value of the thread state performance counter. More details on what happens at each transition are included later in this section. The thread states are as follows Ready A thread in the ready state is waiting to execute. When looking for a thread to execute the dispatcher considers only the pool of threads in the ready state. Deferred ready This state is used for threads that have been selected to run on a specific processor but have not yet been scheduled. This state exists so that the kernel can minimize the amount of time the systemwide lock on the scheduling database is held. Standby A thread in the standby state has been selected to run next on a particular processor. When the correct conditions exist the dispatcher performs a context switch to this thread. Only one thread can be in the standby state for each processor on the system. Note that a thread can be preempted out of the standby state before it ever executes if for example a higher priority thread becomes runnable before the standby thread begins execution . Running Once the dispatcher performs a context switch to a thread the thread enters the running state and executes. The thread s execution continues until its quantum ends and another thread at the same priority is ready to run it is preempted by a higher priority thread it terminates it yields execution or it voluntarily enters the wait state. Chapter 5 Processes Threads and Jobs 401 Waiting A thread can enter the wait state in several ways a thread can voluntarily wait for an object to synchronize its execution the operating system can wait on the thread s behalf such as to resolve a paging I O or an environment subsystem can direct the thread to suspend itself. When

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.