There are several methods to kill Windows system processes.

Source: Internet
Author: User

There are several ways to kill a Windows system process: a process is an activity executed by a program on a computer. When you run a program, you start a process. Obviously, the program is dead (static), and the process is active (dynamic ). Processes can be divided into system processes and user processes. All the processes used to complete various functions of the operating system are system processes, which are the operating system itself in the running state; user processes are all processes started by you. A process is the unit in which the operating system allocates resources. Some processes cannot end through the "Task Manager". What if a trojan is encountered? We can force this process to end. Please refer to the following tips. In www.2cto.com Windows, only System, SMSS. EXE, and CSRSS. EXE cannot be killed. The first two are pure kernel state, and the last one is the Win32 subsystem. ntsd needs it. Ntsd is a user-mode debugging tool provided by the system starting from 2000. The attach process exits along with the debugger, so it can be used to terminate the process under the command line. You can use ntsd to automatically obtain the debug permission to kill most processes. Ntsd will open a new debugging window, which cannot be controlled in pure command lines, but if it is just a simple command, such as exit (q ), use the-c parameter to pass it from the command line. NtsdNtsd is also provided to software developers by convention. Only system developers use this command. For more information, see the Help file attached to NTSD. Usage: Open the cmd.exe window and enter ntsd-c q-p PID to change the last PID to the ID of the process to be terminated. If you do not know the process ID, choose Task Manager> process tab> View> Select column> check PID (process identifier. In XP, there are two useful tools: tasklist and tskill. Tasklist can list all processes and related information. Tskill can scan and kill processes. The syntax is simple: tskill program name. 1 Linux processes sleep and wake up www.2cto.com in Linux, processes that only wait for CPU time are called ready processes, which are placed in a running queue, the status flag of a ready process is TASK_RUNNING. Once a running process runs out of time slices, the scheduler in the Linux Kernel will deprive the process of control over the CPU and select a suitable process from the running queue for running. Of course, a process can also take the initiative to release control of the CPU. The schedule () function is a scheduling function that can be actively called by a process to schedule other processes to occupy the CPU. Once the process that voluntarily gave up the CPU is rescheduled to occupy the CPU, it will start to run from the last stop, that is, it will call schedule () the execution starts at the next line of code. Sometimes, the process needs to wait until a specific event occurs, such as the device Initialization is complete, the I/O operation is complete, or the timer is reached. In this case, the process must be removed from the running queue and added to a waiting queue. At this time, the process enters the sleep state.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.