顺序队列是队列的顺序存储结构,顺序队列实际上是运算受限的顺序表。和顺序表一样,顺序队列用一个向量空间来存放当前队列中的元素。由于队列的队头和队尾的位置是变化的,设置两个指针front和rear分别指示队头元素和队尾元素在向量空间中的位置,它们的初值在队列初始化时均应设置为0。
将方法调用(事件)放入队列,以保证顺序。在队列中,在前一个方法请求返回之前,不会发送下一个方法请求。
The method calls (events) are queued, guaranteeing order; the next method request in the queue is not sent until the previous one returns.
这样,就可以确保具有相同单号的所有购物订单都能够按其在队列上的最初顺序被处理。
Therefore, any purchase orders that have the same number are guaranteed to be processed in their original order on the queue.
传输队列上分布列表消息的消息数据排列顺序如下。
The message data of a distribution-list message on a transmission queue has the following sequence.
应用推荐