From interviewing people in prison, who were convicted (pleaded guilty) in connection with the Broadwater Farm riots in 1985, I can say that many young blacks, not all, were totally unaffected by being locked up.
If my impression was correct, that means the threat of prison is not a deterrent and officialdom must look for other solutions.