Objective To shorten the time spent in pharmacy for patients and to solve outpatient pharmacy queuing problem.Methods Algorithms of pharmacy windows distribution were listed to expound the advantages and shortcomings of 'cyclic distribution method' and'minimum distribution method'.Results Cyclic distribution method and minimum distribution method were feasible in large-scale hospital.Conclusion It plays an important role in shortening the time spent in pharmacy for patients.[Chinese Medical Equipment Journal,2008,29(2):51-52,54]