For example , suppose you are programming a game and for this game , you maintain a list of every drawable object and have the drawing thread running independently of the game thread 例如,假定您正在编写一个游戏程序,并为每一个可移动对象维护了一个列表,与此同时,还运行着与游戏线程无关的可移动线程。
The drawing thread can simply iterate through the list of objects without worry because you know that even if game objects are added during the drawing period , they will not affect the nodes that are currently being drawn 可移动线程可以无所顾虑地遍历列表,因为您知道即使在移动期间添加了游戏对象,它们也不会影响正在移动的节点。