Bewerken

Delen via


~s (Change Current Processor)

The ~s command sets which processor is debugged on a multiprocessor system.

In kernel mode, ~s changes the current processor. Do not confuse this command with the ~s (Set Current Thread) command (which works only in user mode), the |s (Set Current Process) command, the ||s (Set Current System) command, or the s (Search Memory) command.

~Processor s

Parameters

Processor
Specifies the number of the processor to debug.

Environment

Item Description
Modes kernel mode only
Targets live, crash dump
Platforms all

Remarks

You can specify processors only in kernel mode. In user mode, the tilde (~) refers to a thread.

You can immediately tell when you are working on a multiple processor system by the shape of the kernel debugging prompt. In the following example, 0: means that you are debugging the first processor in the computer.

0: kd>

Use the following command to switch between processors:

0: kd> ~1s
1: kd>

Now the second processor in the computer that is being debugged.

See also

Multiprocessor Syntax