2 servos (or any functions) operating simultaneously?

1.How?
2.Any example?

Four servos, independently and simultaneously.
(Uncompiled, untested)

const byte N_SERVOS = 4;
const byte servoPin [N_SERVOS] = {2, 3, 4, 5}; //whatever
Servo servo [N_SERVOS]; //simplistic controls on A0, A1...A(n-1)
void setup ()
{
  for (int i = 0; i < N_SERVOS; i++) {
    servo [i].attach (servoPin [i]);
  }
}

void loop ()
{
  for (int i = 0; i < N_SERVOS; i++) {
    servo [i].write (map (analogRead (i), 0, 1024, 0, 180));
  }
}