Chapter 10. Processes, Tasks, and Services

Introduction

Processes are a fundamental component of the Windows XP operating system. For anything you do on a system, whether it is deleting a file, starting a service, or writing text in Notepad, there is a process behind it. Since processes are so important, it is critical that you understand how to manage, monitor, and troubleshoot them.

Processes use system resources, such as CPU and memory, in order to run. But not all processes are created equal. Some use more resources than others and often you’ll run into situations where you need to identify processes that are using more resources than they should, which may make it difficult for other processes to work. Processes also frequently open files, DLLs, and Registry keys and values. These resources are known as handles, and often when a process has one open, no other process can modify or delete it. This can make it problematic, for example, if you need to rename a file that a process has a lock on.

There are several processes that start by default whenever a Windows server boots up. Any applications you’ve installed that run at system startup will also have one or more processes running, all without you doing a thing. It is for this reason that you need to be able to create, query, suspend, and terminate processes on demand, otherwise it is very easy to lose control over how your system performs.

A task is simply a program, application, command, or script that does something useful. In ...

Get Windows XP Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.