Bertrand Russell has treated this subject in his inimitable fashion in his essay titled "Boredom and Excitement", Chapter 4 of his book "The Conquest of Happiness". The chapter starts off with "Boredom as a factor in human behaviour has received, in my opinion, far less attention than it deserves." and is well worth reading (at least) a few times.