Then, after a baseline EEG test measuring normal brain activity, the researchers assigned the participants a tedious task: they had to turn eight virtual pegs on a screen as the computer highlighted them. This activity lasted approximately 10 minutes, during which time the researchers used EEG caps to measure participants’ brain activity as they carried out the boring task.

The authors of this paper point to an interesting study by Robin Damrad-Frye and James Laird in the August 1989 issue of the Journal of Personality and Social Psychology. In this study, participants had to listen to a tape of a person reading a Psychology Today article. In the next room, there was a television soundtrack from a soap opera playing. For some groups listening to the article, the TV was very loud and distracting, for others it was barely noticeable, and for some it was not playing at all. After listening to the article, people rated their boredom during the study. 
Without stimulus or focus, the individual is confronted with nothingness, the meaninglessness of existence, and experiences existential anxiety. Heidegger states this idea as follows: "Profound boredom, drifting here and there in the abysses of our existence like a muffling fog, removes all things and men and oneself along with it into a remarkable indifference. This boredom reveals being as a whole."[27] Schopenhauer used the existence of boredom in an attempt to prove the vanity of human existence, stating, "...for if life, in the desire for which our essence and existence consists, possessed in itself a positive value and real content, there would be no such thing as boredom: mere existence would fulfil and satisfy us."[28]
Thomas Goetz, the lead researcher of the work and a professor at the University of Konstanz in Germany, says the multiple types of boredom can be loosely characterized along two dimensions. First, whether it is associated with a positive (score of 1) or negative (score of 5) emotion, and second, by degree of arousal, from calm (score of 1) to fidgety (score of 5).

Lethargy is a state of tiredness, weariness, fatigue, or lack of energy. It can be accompanied by depression, decreased motivation, or apathy. Lethargy can be a normal response to boredom, inadequate sleep, overexertion, overworking, stress, lack of exercise, or a symptom of a disorder. When part of a normal response, lethargy often resolves with rest, adequate sleep, decreased stress, and good nutrition.[21][22]

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.  
The bored antihero became prominent in early 20th century existentialist works such as Franz Kafka's The Metamorphosis (1915),[43] Jean-Paul Sartre's La Nausée (1938) (French for 'Nausea'),[44] and Albert Camus' L'Étranger (1942) (French for 'The Stranger').[45] The protagonist in these works is an indecisive central character who drifts through his life and is marked by ennui, angst, and alienation.[46]
The superfluous man (Russian: лишний человек, lishniy chelovek) is an 1840s and 1850s Russian literary concept derived from the Byronic hero.[42] It refers to an individual, perhaps talented and capable, who does not fit into social norms. In most cases, this person is born into wealth and privilege. Typical characteristics are disregard for social values, cynicism, and existential boredom; typical behaviors are gambling, drinking, smoking, sexual intrigues, and duels. He is often unempathetic and carelessly distresses others with his actions.

The expression to be a bore had been used in print in the sense of "to be tiresome or dull" since 1768 at the latest.[4] The expression "boredom" means "state of being bored," 1852, from bore (v.1) + -dom. It also has been employed in a sense "bores as a class" (1883) and "practice of being a bore" (1864, a sense properly belonging to boreism, 1833).[5] The word "bore" as a noun meaning a "thing which causes ennui or annoyance" is attested to since 1778; "of persons by 1812". The noun "bore" comes from the verb "bore", which had the meaning "[to] be tiresome or dull" first attested [in] 1768, a vogue word c. 1780–81 according to Grose (1785); possibly a figurative extension of "to move forward slowly and persistently, as a [hole-] boring tool does."[6]
There’s no specific, medical treatment for boredom. However, there are tons of solutions if you’re experiencing boredom. For example, you may want to consider trying some new hobbies or other new diversional activities. Joining a club can be a good way to thwart your boredom. Reading clubs, hobby groups, or exercise groups are all great places to start. Joining a community group that organizes activities and outings is another good idea.