It could be that it is performing an illegal operation.
Go to Start/Control Panel/System/Advanced/Statup and Recovery settings
and take the tick out of Automatically Restart.
Now try again with the tasks that caused it to restart.
If nothing happens then count yourself lucky! Otherwise you may get a BSOD with an error message.
You could also try looking in the Event Log for any problems.