same room; sharing a room; roommate
General term for sharing a room or being in the same room, such as in a dormitory, hospital, or hotel.
I became friends with my roommate in the university dormitory.
same prison cell; sharing a cell; cellmate
Specifically refers to sharing a prison cell or being in the same cell.
He often talked with his cellmate in prison.