事件处理:pull与push push:对应函数调用;属于发起方主动型 pull :对应消息循环;模型为信息池+事件循环+派发;属于接收者主动; 通常这种模式的角色对应于消息中心(事件派发中心)。 观察者模式:变化+派发。