The paper studies a single-server two-queue priority system with changeover times and switching threshold. The server serves queue 1 exhaustively and does not remain at an empty queue if the other one is non-empty. It immediately switches from queue 2 to queue 1 when the length of the latter reaches some level M. Whenever service is changed from one queue to the other a changeover time is required. Arrivals are Poisson, service times and changeover times are independent and exponentially distributed. Using an analytic method we obtain the steady-state joint probability generating function of the lengths of the two queues. By means of this probability generating function some performance measures of the system such as mean length of queue and mean delay can be calculated.