How were the civilizations of the Huang River valley and the Nile River valley similar?

Both began around 4000 BCE.
Both arose in desert regions.
Both failed to develop a writing system.
Both were ruled by dynasties.