Synchronization in Infinite-Dimensional Deterministic and Stochastic Systems