A Skorokhod problem formulation and large deviation analysis of a processor sharing modelConvex duality and the Skorokhod Problem