I did a clinical rotation at a county hospital where they had a prison ward on a med surg floor. The area was isolated and there were two deputies standing guard. In the secured unit the inmates weren't allowed to speak except for medical questions and there was a caged area if anybody caused any trouble.
If an inmate wasn't high risk, like a thief who was serving time for minor charges, they'd put them on the regular floor nearby and handcuff their leg to the bed. But, one time one of those guys suddenly started yelling and throwing things so, the deputies put him in the secure caged area.
I don't know if it works like this elsewhere but, it was interesting to see how they handled inmates at this hospital. It sure felt safer having those deputies around.
Afterall ... I've had patients yelling and throwing things but, security usually wasn't around to do anything about it. But when that inmate caused trouble those deputies took care of it right away.