Current location - Quotes Website - Personality signature - On the problem of system occupying cpu
On the problem of system occupying cpu
solution

1. Right-click the start menu to open the computer management page;

2. Open the computer "service" interface on the computer management page;

3. Find the Superfetch service in the list of "Services" interface of the computer;

4. Double-click the Superfetch service, change the startup type of the service from "automatic" to "manual", and then save and exit;

5. Restart the computer, and your system process will return to normal.

It should be noted that you need to use a computer administrator account when doing the above operations. As for the Superfetch service, it is used to maintain and improve the system performance for a period of time. If the system process does not affect the use of the computer, do not set it.

System is a function in C language and C++. The detailed explanation of system () function under windows operating system is mainly the application of C language, and the system function needs to add a header file.

The difference with exec

1, system () and exec () can all execute out-of-process commands. The system creates a new process on the original process, but exec overwrites the original process with the new process (command).

2. Both 2.system () and exec () can generate return values. The return value of system will not affect the original process, but the return value of exec will affect the original process.