^ Vodanovich, Stephen J. (November 2003) "Psychometric Measures of Boredom: A Review of the Literature" The Journal of Psychology. 137:6 p. 569 "Indeed, a shortcoming of the boredom literature is the absence of a coherent, universally accepted definition. The lack of an agreed-upon definition of boredom has limited the measurement of the construct and partly accounts for the existence of diverse approaches to assessing various subsets of boredom."
Boredom is similar to mental fatigue and is caused by repetition and lack of interest in the details of our tasks (such as tasks that require continuous attention, waiting at the airport, prisoners locked in cells). Any experience that is predictable and repetitive becomes boring. In general, too much of the same thing and too little stimulation can cause in its victim an absence of desire and a feeling of entrapment (Toohey, 2012).
The French loanword ennui comes from the very same Late Latin word that gave us annoy — inodiare ("to make loathsome"). We borrowed ennui several centuries after absorbing annoy into the language. Ennui deals more with boredom than irritation - and a somewhat specific sort of boredom at that. It generally refers to the feeling of jadedness that can result from living a life of too much ease. The poet Charles Lloyd described it well in his 1823 Stanzas to Ennui when he referred to that world-weary sensation as a "soul-destroying fiend" which visits with its "pale unrest / The chambers of the human breast / Where too much happiness hath fixed its home."