The standard way to prevent revolutions is to channel the energy of young men into a productive job and a family.
But today, bored young men entertain themselves with video games etc rather than gathering in mobs to entertain themselves. We don't have large gatherings of aimless young men anymore.