The theory of stability of spatially periodic parallel flows