I worked a summer at a "boy's training school" in Ontario in 1978. Solitary confinement was a common practice then for boys who were "behaviour problems." The boys ranged in age from about 9 to 16. I don't know if they still use solitary confinement in the training schools, but I would hope not.