Object processing method based on synchronization slot and related product
The embodiment of the invention discloses an object processing method based on a synchronization slot and a related product, and the method comprises the steps of responding to the access of a first thread to a synchronization slot, and determining a first object included in a preset queue set accor...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention discloses an object processing method based on a synchronization slot and a related product, and the method comprises the steps of responding to the access of a first thread to a synchronization slot, and determining a first object included in a preset queue set according to the first thread; and in response to the access of the second thread to the synchronization slot, determining a second object held by the second thread, and storing the second object in the preset queue set. By adopting the embodiment of the invention, multi-thread dynamic access can be realized, and the utilization rate of the object can be improved.
本申请实施例公开了一种基于同步槽的对象处理方法及相关产品,方法包括:响应于第一线程对于取同步槽的访问,根据第一线程确定预设队列集中包括的第一对象;响应于第二线程对于还同步槽的访问,确定第二线程持有的第二对象,将第二对象存储在预设队列集中。采用本申请实施例可实现多线程的动态访问,有利于提高对象的利用率。 |
---|