Insights into the High-energy \gamma-ray Emission of Markarian 501 from Extensive Multifrequency Observations in the Fermi Era