Prisons are conventionally institutions, which form part of the criminal justice system of a country, such that imprisonment or incarceration is a legal penalty that may be imposed by the state for the commission of a crime.In popular parlance of many countries, the term jail (gaol) is considered synonymous with prison, although legally these are often distinct institutions: typically jails are in