Killing a “frozen” Dock in OS X

For some reason, my OS X dock is kinda oddly freezing in place tonight, and while it still functions it is just behaving very bizarrely. If you need to restart the Dock, there’s a way to do it via command line - just type killall Dock.