Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

Host Process for Windows Tasks (taskhostw.exe) คืออะไรใน Windows 11/10

เวลาเจอปัญหาประสิทธิภาพ คอมพิวเตอร์ เราจะเปิด Task Manager หา applications/components ที่ใช้ทรัพยากรมาก ถ้าคุ้นเคย Task Manager ต้องสังเกตเห็น Host Process for Windows Tasks หรือ Service Host ใช้ทรัพยากร กระบวนการเหล่านี้คืออะไร และทำยังไงถ้า Host process หยุดทำงาน หรือใช้ CPU, Disk, Memory สูง

Host Process for Windows Tasks หรือ Service Host

Host Process for Windows Tasks (taskhostw.exe) คืออะไรใน Windows 11/10

Windows ทำงานได้เพราะ Services จำนวนมากรันใน background ช่วยงานประจำวัน บาง services compile เป็น EXE files สมบูรณ์ตัวเอง แสดงใน Task Manager แต่บาง services เขียนใน DLL files ไม่สามารถ execute โดยตรง Microsoft เปลี่ยนไป DLL เพราะง่ายต่อ maintain และ update ด้าน programming DLL services ต้องการ host process EXE ที่ execute พวกเขา นี่คือ 'taskhost' ใน Windows

Taskhost ใน Windows 11/10 เป็น core file ใน System32 folder เปลี่ยนชื่อเป็น taskhostw.exe จาก taskhost.exe ใน Windows 7 ถ้าเจอไฟล์ชื่อนี้ใน location อื่น อาจเป็น virus ตรวจสอบด้วย security software

แต่ละ 'Host Process for Windows Task' เป็น instance ของ 'taskhost' รัน service บางอย่างใน background Windows Task Manager ไม่ให้ดู underlying services แต่อื่นๆ ดูได้

Host Process for Windows Services หยุดทำงาน หรือใช้ทรัพยากรสูง

ถ้าเจอ message box 'stopped working' ลอง troubleshooting:

  1. เปิด Task Scheduler Left pane: Task Scheduler Library > Microsoft > Windows > RAC คลิก View Menu เลือก Show Hidden Tasks Middle pane คลิกขวา RAC Task Disable ดูช่วยไหม ไหม reverse change
  2. เปิด Event Viewer เลือก latest Application event log ซ้ายที่มี red mark คลิกสองครั้ง event ดูรายละเอียด หาข้อมูล useful ถ้าแสดง Host process for Windows has stopped working อาจช่วย
  3. Perform Clean Boot troubleshoot manually

อาจเจอ process ใช้ทรัพยากรสูง เข้าใจได้ว่า underlying service เป็นสาเหตุ ไม่ใช่ process เอง อาจเห็น high consumption ตอน Windows startup เพราะ taskhost load DLL files ทั้งหมด schedule รัน เสร็จแล้ว usage จะลดลงค่าต่ำคงที่

Task Manager ไม่ให้ดู underlying services แต่ใช้ Process Explorer จาก Microsoft ดู services ใต้ taskhost ได้ portable utility รันได้ทันทีหลังดาวน์โหลด ดูรายละเอียด taskhost ทั้งหมด

หา 'taskhostw.exe' ใน left pane อ่านรายละเอียดใน lower pane อีกวิธีดู DLL files ที่ taskhost load: พิมพ์คำสั่งใน cmd:

tasklist /M /FI "IMAGENAME eq taskhostw.exe"

Host Process for Windows Tasks (taskhostw.exe) คืออะไรใน Windows 11/10

คำสั่งนี้ list DLL files ที่ load โดย process นี้ตอน Windows Startup ดู list จะเจอ essential files ให้ core functionality กับ Windows

สรุป Taskhost เป็น core Windows process โหลดและ execute dynamic link libraries เนื่องจาก host DLL files หลายตัว บางครั้ง consume resources สูงกว่าปกติ ถ้าเจอปัญหา process หยุดตอบสนอง หรือใช้ทรัพยากรมาก ใช้ Process Explorer, Performance Monitor, Resource Monitor troubleshoot แบบ manual

อยากรู้จักกระบวนการ/ไฟล์เหล่านี้?

Windows.edb files | csrss.exe | Svchost.exe | StorDiag.exe | MOM.exe | ApplicationFrameHost.exe | ShellExperienceHost.exe | winlogon.exe | atieclxx.exe | Conhost.exe | mDNSResponder.exe

Host Process for Windows Tasks (taskhostw.exe) คืออะไรใน Windows 11/10