Shared resource allocation and use method and system

The invention provides a shared resource allocation and use method and system. The method comprises the following steps: reading a Mutex semaphore in an uncached address space of an SoC bus; state information of the Mutex semaphore is identified; when the state information is in a non-locking state,...

Full description

Saved in:
Bibliographic Details
Main Author LIU ZHONGZHI
Format Patent
LanguageChinese
English
Published 30.06.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention provides a shared resource allocation and use method and system. The method comprises the following steps: reading a Mutex semaphore in an uncached address space of an SoC bus; state information of the Mutex semaphore is identified; when the state information is in a non-locking state, determining a shared resource corresponding to the Mutex semaphore; switching the state information into a locked state, and using the shared resource. Visibly, the method can enable a plurality of parallel threads to apply for and use different shared resources at the same time so as to achieve the highest parallelism degree, thereby being beneficial to improving the performance of the processor. 本申请提供一种共享资源分配使用方法及系统,该方法包括:读取SoC总线的uncacheable地址空间中的Mutex信号量;识别Mutex信号量的状态信息;当状态信息为非锁定状态时,确定与Mutex信号量相对应的共享资源;切换状态信息为锁定状态,并使用共享资源。可见,该方法能够使得多个并行线程可以同时申请和使用不同的共享资源,以达到最高的并行度,从而有利于提升处理器性能。
Bibliography:Application Number: CN202310347262