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.  

A 1989 study indicated that an individual's impression of boredom may be influenced by the individual's degree of attention, as a higher acoustic level of distraction from the environment correlated with higher reportings of boredom.[32] Boredom has been studied as being related to drug abuse among teens.[33] Boredom has been proposed as a cause of pathological gambling behavior. A study found results consistent with the hypothesis that pathological gamblers seek stimulation to avoid states of boredom and depression.[34] It has been suggested that boredom has an evolutionary basis that encourages humans to seek out new challenges. It may influence human learning and ingenuity.[35]
A "banishment room" (also known as a "chasing-out-room" and a "boredom room") is a modern employee exit management strategy whereby employees are transferred to a department where they are assigned meaningless work until they become disheartened enough to quit.[37][38][39] Since the resignation is voluntary, the employee would not be eligible for certain benefits. The legality and ethics of the practice is questionable and may be construed as constructive dismissal by the courts in some regions.
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."