Dynamical aspects of P systems