Lucky Jim by Kingsley Amis
Set sometime around 1950, Lucky Jim follows the exploits of the eponymous James (Jim) Dixon, a reluctant Medieval history lecturer at an unnamed provincial English university. Having made a bad first impression in the history department, he is concerned about being fired at the end of his first year, and seeks to hold his position by maintaining good relations with his superior, the tedious Professor Welch - an often absent-minded and unbearably pompous dilettante.