I call the thoughts my mind drifts to as the "background thread" in my CPU. And there are times when that background thread is very productive and enjoyable. Alas, there have are times when that thread is destructive - conflict, as pg mentions, is a very destructive background thread.
In general, I have found that the bad threads are much more persistent than good threads, which means that is is harder to get out of a bad thread than a good one. As an example, it is far easier to slip out of "How does this thing work" thread running in the back of my mind, but very hard to get out of "How unfair that ..." in that it takes a more conscious effort to get out of it.
I also would say that the difference between when I was 25 vs when I reached 40 is that I am now much more conscious of these threads. That awareness makes it somewhat easier to avoid bad threads (alas, not always). There is still a kind of thermodynamic efficiency involved, in that there is a maximum good-thread percentage.
As an aside, the spiritual philosopher Eckhart Tolle has many interesting things to say about these.