How were castles kept warm in the medieval age?

by ieatpoopandshit

It seems to me like it would be an enormous task to maintain a castle warm, especially large rooms for feasts and such. How was this accomplished?

matgopack