A rationing mechanism is a system for choosing who gets how many goods during a shortage. Long lines are often used to ration goods in shortage (so the good is distributed on a first-come, first-serve basis). In addition, black markets often develop as a way of rationing goods that are in shortage.