I don't know, don't tenements generally have "familial unit" rooms? The rooms are shared, but usually not with strangers or on a large scale. Barracks or "worker dormitories" fit better.
I like your "worker dormitories". Alternatives include rooming house, single room occupancy (SRO), flophouse, communal apartment, and cohousing, depending on the details.