Boredom is a condition characterized by perception of one's environment as dull, tedious, and lacking in stimulation. This can result from leisure and a lack of aesthetic interests. Labor and art may be alienated and passive, or immersed in tedium. There is an inherent anxiety in boredom; people will expend considerable effort to prevent or remedy it, yet in many circumstances, it is accepted as suffering to be endured. Common passive ways to escape boredom are to sleep or to think creative thoughts (daydream). Typical active solutions consist in an intentional activity of some sort, often something new, as familiarity and repetition lead to the tedious.
One more key element of boredom is control. Boredom often occurs when you have little control over your situation. Waiting rooms, lectures, and airline gates are all places where you have little control over your situation. Normally, we react to unpleasant situations by changing the situation. If you don’t like a book you are reading, for example, you close it and do something else. Boredom happens when you are unable to change the situation.  

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]

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.
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.