From wiki .....
When attached to......... other alternators, an alternator will dynamically interact with the frequency already present on the grid, and operate at a speed that matches the grid frequency. If no driving power is applied, the alternator will continue to spin at a constant speed anyway, driven as a synchronous motor by the grid frequency. It is usually necessary for an alternator to be accelerated up to the correct speed and phase alignment before connecting to the grid, as any mismatch in frequency will cause the alternator to act as a synchronous motor, and suddenly leap to the correct phase alignment as it absorbs a large inrush current from the grid, which may damage the rotor and other equipment.