A Windows workstation is experiencing severe performance degradation because a frozen application process with PID 3944 (`DataSync.exe`) has spawned multiple unresponsive background worker threads. A systems administrator opens an elevated Command Prompt and needs to forcibly terminate the parent process along with all of its spawned child processes in a single command. Which command should the administrator execute to achieve this objective?
- taskkill /pid 3944 /f /tAnswer
- Btaskkill /im DataSync.exe /f /s
- Ckill -9 3944 --children
- Dtasklist /fi "PID eq 3944" /kill
Answer
The command taskkill /pid 3944 /f /t forcefully terminates process ID 3944 along with all child processes started by it.
The correct command uses `taskkill` specifying the PID (`/pid 3944`), the force switch (`/f`) to terminate unresponsive tasks, and the tree switch (`/t`) to terminate all child worker processes spawned by the parent process.
Step-by-Step Solution
Key Concept
Windows Task Termination Commands and CLI Switches