Resource file release method and device

The invention provides a resource file release method, a device, electronic equipment and a computer readable storage medium. The method comprises the following steps: aiming at each source resource file to be released in a disk, respectively creating associated channels one by one; registering the...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YIN KEJUN, WANG AITING, XU ZHINING, GONG BINGCHUAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a resource file release method, a device, electronic equipment and a computer readable storage medium. The method comprises the following steps: aiming at each source resource file to be released in a disk, respectively creating associated channels one by one; registering the plurality of channels into the same selector, and querying the states of the plurality of channels through the selector; reading a data block from the associated source resource file into a buffer area of a memory through the queried channel in the ready state, and writing the data block in the buffer area of the memory into a corresponding target resource file in the disk; and when all the data blocks in the associated source resource file are read and written into the corresponding target resource file, closing the channel in the ready state. Through the method and the device, the resource file can be efficiently released. 本申请提供了一种资源文件的释放方法、装置、电子设备及计算机可读存储介质;方法包括:针对磁盘中待释放的每个源资源文件,分别创建一一关联的通道;将多个所述通道注册到同一个选择器中,通过所