This paper is part of a long-term research on the application of event-based control to the thermal management of high-power, high-density microprocessors. Specifically, in this work we introduce and discuss a purpose-specific event-based realisation of a digital controller for thermal management, which integrates into a scheme that also takes care of the power/performance tradeoff, and carry out a stability and a preliminary performance analysis. We also present, extending previous research, a comprehensive Modelica library suitable to carry out control studies in the addressed domain. We finally show experimental results on a modern processor architecture, that also compare our solution to the state of the art, to demonstrate the effectiveness of the proposal