Were prisoners conscripted at the start of the world wars?

by vision-in-denim

If say i was in prison for serious crimes during the start of ww1/2, would i have been made to fight on the front lines, or would i remain there for the duration? If yes, then would i have been returned to serve my time at the end of the war or granted some form of clemency for my service?

the_howling_cow

Not to discourage further responses, but I answered a similar question here.