Although the concept of public punishment may now seem strange, even barbaric, it was the accepted norm in England until the 19th century. It is only in recent times that prison has been used as a punishment. Before the 19th century, jails were usually only places to hold people prior to their trial or punishment.
Audience participation was a key element. The helpless victim would usually be subjected to a barrage of mockery and abuse, and pelted with any missiles which came to hand. These could range from rotten fruit and vegetables, mud, excrement, dead rats, even stones.
There are still quite a few village stocks preserved. Mostly, so far as I am aware, in the North of England.
