I think it kind of varies from person to person. I know that after a while I stopped thinking about my wife because thinking about her just made me miss her that much more.
But I also know someone whose wife has been gone for a year and he hasn't stopped hoping she'll come back -- and she did once before, had been gone for a couple years before she came back.