A multithread java program that simulates checkout systems of supermarkets, aims to provide solutions to maximize the efficiendy of checkout systems. Both safety and liveness of the programme are provided.