I travelled alone and stayed in mixed sex dorms in my 20s for a long period. I generally got on better with blokes and it worked well for me. I didn't think of those risks largely because if you are traveling alone you are at risk generally anyway and you have to build trust quickly with anyone you are sharing a room with regardless of sex. Time is different and you get to know people in a different way. I'm still in touch with an American guy I shared a room with. I think there's an element of not shitting on your own doorstep too - if you assault someone in the room you are staying you are easy to identify. Why would a man necessarily take that level of risk? When traveling I'd argue there's easy targets without that level of risk available.
To highlight my point, I'd use the example of where I was sexually assaulted in a hostel. The incident didn't occur in a dorm. I was followed into a single sex toilet late at night. I did report it. I think I was actually in a single sex room at the time. I have no idea who the person was and couldn't really give a helpful description and that's the point and why it probably happened. Opportunity and lower risk of being identified. So I'd argue that these facilities were probably higher risk than the dorms themselves. And looking back I think there were other places where I think I was more vulnerable than the dorms.
Most of the girls were travelling in pairs to begin with, whereas the boys were much more likely to be alone and that evened a lot of the power dynamics up tbh too. I was unusual as I was slightly older (the others tended to be late teens whereas I was mid twenties). Given that I'd flown alone to the other side of the world alone, I think the way I assessed risk was different anyway. I was already used to going out as a single female anyway and using instincts to get the measure of others around me very quickly. There were situations and scenarios that I avoided that girls travelling in pairs were more likely to put themselves into because they felt a different level of security - perhaps false security.
Then there's the environment. You are also around similar aged people with a similar mindset. It's not like going to a club purely to pull - that can and does happen - but I do think it's different too. Plus your guard levels are often different to when you are in your home country or with close friends. It's hard to explain. There were people who didn't fit in and they stood out a mile. You would avoid them and situations with them. And you would communicate with others around you differently. It's a different social structure which isn't necessarily reflective of the wider world and honestly, perhaps is more safe than you might think as a result. Most are more educated, middle class young people than the broader general population.
Again I think the other particularly awkward situation I had which reflects this was in a mixed hostel in Belfast. The hostel didn't take stag groups and there were signs up saying this. Except they appear to have cocked up and not challenged a group of lads. I was friendly to one of them and they took this the wrong way. And harassed me repeatedly included sitting on my bed trying to wake me. Again I reported it. The hostel were very good about it. But I've always felt this experience was not typical of staying in hostels - the group were not the normal type of person to stay in a hostel and their motivation for being there was slightly different. They were older (in their late 30s I guess) and weren't 'travelling' so to speak. They were asked to leave I believe.
I think it depends on where you go and which type of hostel you staying at (some cater for slightly different demographics and that affects the atmosphere). Staying in hostels in Europe, Australia/NZ, USA, Canada and the UK and Ireland have their own unique character. Out of everywhere the place Id least like to stay in a hostel is unfortunately London - and that's to do with our drinking culture and differing levels of respect for others. And that possibly also colours why we are having this conversation about safety in mixed dorms too as this is British site and from British experiences in the first place - not necessarily from people who have travelled and stayed in dorms. Which is a bit of a sad thing to have to say tbh.