In the US, jails and prisons are two different things. Prisons are state and federal facilities for criminals convicted of serious crimes with sentences of more than a year. Jails are local facilities for suspects waiting for trial, and those convicted of minor crimes with sentences less than a year.
Another big difference between jail and prison is that a prison sentence must be served as a single, unbroken stay. A jail sentence in many places can be served weekends.