I don't believe there is a such thing as "giving up". Its more of "reaching a conclusion" that you do not want the same thing or have the same priorities for the relationship.
"There are only two ways to experience joy and peace of mind in relationships; we either get what we want or we learn to be happy with what we have."
The beautiful thing about a door is it lets those who want in (in) and those who want out (out). No one is "stuck" with anyone.
If someone is unhappy in a relationship and (they) choose to stay then (they) are (choosing) to be unhappy. Each of us gets to choose who we spend our time with.
The goal is to find someone who shares your same values, wants the same things for the relationship as you do, (naturally agrees) with you on how to obtain those things, and last but not least there is a (mutual) depth of love and desire for one another.
I'm not sure if (gender) is the determining factor of how long someone will stay in a relationship they are unhappy with. I think one's self-esteem or love of self as well as having "realistic expectations" are major keys in making relationship decisions. Some people stick around "hoping" their mate will "change" overtime.
The reality is everyone wants to be loved and appreciated for who they are. If you or your mate needs to change their (core) being or the way they think in order to make the relationship work, then it's a clear signal that you are probably not "right" for one another!
There is no amount of "communication" or "work" that can overcome being with someone who does not want what you want.
Instead of trying to change someone we are far better off trying to find someone who (already is) the kind of person we want to be with!
FYI: According to a recent survey by AARP in the U.S. (women) initiate 66% or 2/3rds of all divorces!