A digital spectrum stabilization technique with four energy-windows has been generally used in the modern computerized nuclear logging instruments. The algorithm program applied in this technique is presented. A rather integrated real-time control flow of spectrum stabilization and its implementation by program have been put forward
and verified finely in the gamma-ray logging system. The distinctive advantages of the four energy-windows spectrum- stabiltiation technique
such as fast speed for identifying peak
high precision and strong anti-interference ability over the two energy-windows one have been discussed.