What can you do about boredom? Obviously, there are times when you are stuck. If you are listening to a lecture that you cannot leave, then you just need to find a way to get through it. When you have some control, though, use your understanding of boredom to help you out. If you can, try to do a meditation exercise to lower your arousal level. Also, keep some music handy. Music you enjoy can crowd out distractions in the environment. It can also influence your mood in positive ways to counteract the pain of being bored.  
“When I have neither pleasure nor pain and have been breathing for a while the lukewarm insipid air of these so called good and tolerable days, I feel so bad in my childish soul that I smash my moldering lyre of thanksgiving in the face of the slumbering god of contentment and would rather feel the very devil burn in me than this warmth of a well-heated room. A wild longing for strong emotions and sensations seethes in me, a rage against this toneless, flat, normal and sterile life. I have a mad impulse to smash something, a warehouse, perhaps, or a cathedral, or myself, to commit outrages, to pull off the wigs of a few revered idols...”
Erich Fromm and other thinkers of critical theory speak of boredom as a common psychological response to industrial society, where people are required to engage in alienated labor. According to Fromm, boredom is "perhaps the most important source of aggression and destructiveness today." For Fromm, the search for thrills and novelty that characterizes consumer culture are not solutions to boredom, but mere distractions from boredom which, he argues, continues unconsciously.[29] Above and beyond taste and character, the universal case of boredom consists in any instance of waiting, as Heidegger noted, such as in line, for someone else to arrive or finish a task, or while one is travelling somewhere. The automobile requires fast reflexes, making its operator busy and hence, perhaps for other reasons as well, making the ride more tedious despite being over sooner.
Finally, a real problem caused by boredom is that it leads you to dislike the things that are the object of boredom. In my senior year of high school, for example, I was forced to read Moby Dick. I struggled to get interested in it and spent long hours staring at the pages trying to lose myself in it. To this day, I really do not like Moby Dick. The negative feelings that came with the boredom have stuck to the book.
In conventional usage, boredom is an emotional and occasionally psychological state experienced when an individual is left without anything in particular to do, is not interested in their surroundings, or feels that a day or period is dull or tedious. It is also understood by scholars as a modern phenomenon which has a cultural dimension. "There is no universally accepted definition of boredom. But whatever it is, researchers argue, it is not simply another name for depression or apathy. It seems to be a specific mental state that people find unpleasant—a lack of stimulation that leaves them craving relief, with a host of behavioural, medical and social consequences."[1] According to BBC News, boredom "...can be a dangerous and disruptive state of mind that damages your health"; yet research "...suggest[s] that without boredom we couldn't achieve our creative feats."[2]
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."