Flow is a state of total immersion in a task that is challenging yet closely matched to one’s abilities, akin to “being in the zone.” Flow occurs when a person’s skills match the level of challenge presented by the environment and when a task includes clear goals and immediate feedback. Tasks that are too easy are boring. In contrast, tasks that people perceive to be too difficult lead to anxiety.

The highest levels of arousal and negative emotions. A person in a reactant boredom state has a strong motivation to escape his or her boring situation and avoid those responsible for it (such as teachers or a boss). Reflects significant restlessness and aggression. There are persistent thoughts about specific, “more highly valued alternative situations.”
“To me, at least in retrospect, the really interesting question is why dullness proves to be such a powerful impediment to attention. Why we recoil from the dull. Maybe it’s because dullness is intrinsically painful; maybe that’s where phrases like ‘deadly dull’ or ‘excruciatingly dull’ come from. But there might be more to it. Maybe dullness is associated with psychic pain because something that’s dull or opaque fails to provide enough stimulation to distract people from some other, deeper type of pain that is always there, if only in an ambient, low-level way, and which most of us spend nearly all our time and energy trying to distract ourselves from feeling, or at least from feeling directly or with our full attention. Admittedly, the whole thing’s pretty confusing, and hard to talk about abstractly…but surely something must lie behind not just Muzak in dull or tedious places any more but now also actual TV in waiting rooms, supermarkets’ checkouts, airport gates, SUVs’ backseats. Walkman, iPods, BlackBerries, cell phones that attach to your head. This terror of silence with nothing diverting to do. I can’t think anyone really believes that today’s so-called ‘information society’ is just about information. Everyone knows it’s about something else, way down.”
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]
This kind of boredom is different from the others. Like reactant boredom, it’s also unpleasant, but a person experiencing it has low arousal and a lack of positive or negative feelings–in other words, a feeling of helplessness or depression. Of the high school students sampled in the study, 36% of boredom experiences were of the apathetic kind, which is worrisome given that other studies have shown that boredom, depression, and destructive behaviors are often linked.

When the antiproton was discovered … it sent a wave of ennui through the physics community. Not that its discovery was unimportant, but on the basis of Dirac's theory, everybody expected it. — Roger G. Newton, The Truth of Science, 1997 Chauncey and I were keen enough about our aesthetic solution to the ennui of war to try to proselytize others. He organized discussion groups with the crew; I took volunteers to visit landmarks … — Louis Auchincloss, "Atlantic War," in Authors at Sea, ed. Robert Shenk,  1997 The attendant outside was standing on tennis balls, exercising the soles of her feet, her body swaying back and forth with the ennui of jelly. — Edna O'Brien, New Yorker, 17 June 1991 Thus the days of life are consumed, one by one, without an object beyond the present moment; ever flying from the ennui of that, yet carrying it with us … — Thomas Jefferson, in a letter dated 7 Feb. 1787 Thomas Jefferson: Writings,  1984 the kind of ennui that comes from having too much time on one's hands and too little will to find something productive to do