Windows XP is the most stable OS that Microsoft has produced yet..
To solve your issues..
1. The restart issue, Boot your PC and go into the BIOS. Not knowing your BIOS it will either be pressing F2, esc or the del key. Then under advanced then Boot options enable auto restart..
2. As far as the CD and CD/R-RW you haven't mentioned the make so all you need do is go to the manufacturers web site and download the latest drivers for your CD and CD/r-RW Roms for Win XP.