Thousands of inmates given the chance to serve their sentenc