Elcetricity turns off when I turn on my pc

Do you have to flip the breaker to get the power to come back on?

What do you have running in your room? If you are overloading an outlet it could trip a breaker. Could also be a bad breaker or a short in the wiring of your house for the circuit your PC is plugged into.