Press Control+Alt+Delete, click on the "Processes" tab. Click on "User Name" to sort all processes by user. Then click on each non-necessary process, and click on the "End Process" button.
It is difficult to kill all processes before running defrag in Windows XP because XP is an NT-based kernel and it uses services. There is something always running. You can only shut down user-land applications.