I have a friend in the medical field. It is female dominated. She reports that the females there
a) sexually harass the younger, good looking men
b) are generally verbally abusive and dismissive to the men
c) exclude the men from lunches.
d) preferentially break up the shit duties based on seniority.. which means mostly women have the 'good' duties and schedules and mostly men have the shit duties and schedules.
I.e. they are in the majority and they rule the roost. If the men don't want their working lives worse than they already are, they just "go along to get along" and tolerate the abuses.
The current IT field starts with self selection by gender before high school. For what ever reason, girls don't prefer IT things as a group. It gets worse in college. I have personal experience with this. We started with fewer females to begin with and when we hit the weedout courses, the females dropped out or transferred to other easier degrees at a higher rate. Keep in mind 70% of everyone of both genders who started as freshmen didn't get a degree at all. By the end, the ratio was about 99% men and 1% females.
Now we go to the work environment. Of men, I knew over 30% who would leave work and go home and "play" on computer with .net, java, html, etc. An other 10% would work after hours on project management certification or advanced degrees. Of women, I knew exactly ONE woman in 10 years who behaved like that. About 10% of women would work on pmi or advanced degrees.
After a while, those who loved computers and "played" on them outside of work hours excelled technically. More females tracked off into management than males.
Which leads to a majority male environment. There just aren't enough females interested at a young age, those who are interested drop out more in college, most that graduate don't "love" computers-- they just see IT as a job/career not as "play."
And in a majority male environment, it's hard to prevent
a) Males excluding females when they socialize over fantasy football and the latest html changes.
b) Hanging out with females socially is fun but risky. You could do something and get a complaint.
c) Males despite being in the majority still tend to get the shit duties (such as working at night to install a program while the female gets to stay home because it's "dangerous" at night).
d) Males in a majority can get *too* comfortable making off color comments or telling off color jokes. This can lead to complaints.
At the last place where I worked, females were about 70% of the managers and team leads. There were some sexual harassment issues around 2005 and after that it was annual training and an extremely dust dry environment socially. It was also an older crowd (about 42 average) so the sexual hijinks were gone.