The Department of State is responsible for administering the provisions of the Immigration and Nationality Act (INA) relating to the numerical limitations on immigrant visa issuances. This information sheet explains the operation of the immigrant number allotment and control system:

http://travel.state.gov/content/dam/visas/Immigrant%20Visa%20Control%20System_operation%20of.pdf