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

1. Mở tiện ích System trong Control Panel (hoặc nhấp chuột phải vào biểu tượng của tên máy tính của bạn trên máy tính để bàn, và chọn Properties). Nhấp vào nhãn Advanced System Settings, chọn tab Advanced, nhấn vào nút Settings trong mục Performance, | Chapter 5 Processes Threads and Jobs 439 By making a process a member of a job that has a jobwide affinity mask set using the SetInformationJobObject function Jobs are described in the upcoming Job Objects section. By specifying an affinity mask in the image header when compiling the application For more information on the detailed format of Windows images search for Portable Executable and Common Object File Format Specification on . You can also set the uniprocessor flag for an image at compile time . If this flag is set the system chooses a single processor at process creation time and assigns that as the process affinity mask starting with the first processor and then going round-robin across all the processors. For example on a dual-processor system the first time you run an image marked as uniprocessor it is assigned to CPU 0 the second time CPU 1 the third time CPU 0 the fourth time CPU 1 and so on. This flag can be useful as a temporary workaround for programs that have multithreaded synchronization bugs that as a result of race conditions surface on multiprocessor systems but that don t occur on uniprocessor systems. This has actually saved the authors of this book on two different occasions. EXPERIMENT Viewing and Changing Process Affinity In this experiment you will modify the affinity settings for a process and see that process affinity is inherited by new processes 1. Run the command prompt . 2. Run Task Manager or Process Explorer and find the process in the process list. 3. Right-click th e process and select Affinity. A list of processors should be displayed. For example on a dual-processor system you will see this 4. Select a subs et of the available processors on the system and click OK. The process s threads are now restricted to run on the processors you just selected. 5. Now run from the command prompt by typing . 6. Go back to Task Manager or Process Explorer and find the new Notepad .

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.