What's a youth hostel ?

Is a type of budget accommodation where people can share bathrooms, kitchen and living room. Hostels have the option of staying in dorms and in private rooms.