Martin Heidegger wrote about boredom in two texts available in English, in the 1929/30 semester lecture course The Fundamental Concepts of Metaphysics, and again in the essay What is Metaphysics? published in the same year. In the lecture, Heidegger included about 100 pages on boredom, probably the most extensive philosophical treatment ever of the subject. He focused on waiting at railway stations in particular as a major context of boredom. Søren Kierkegaard remarks in Either/Or that "patience cannot be depicted" visually, since there is a sense that any immediate moment of life may be fundamentally tedious.
The most common way to define boredom in Western culture is having nothing to do. Boredom is generally viewed as an unpleasant emotional state in which the individual feels a pervasive lack of interest in and difficulty concentrating on the current activity. The condition corresponds more precisely to the French ennui, an existential perception of life’s futility. Ennui is a consequence of unfulfilled aspirations (Goodstein, 2005).
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.