Invention Grant
- Patent Title: Method and apparatus for preventing multiple threads of a processor from accessing, in parallel, predetermined sections of source code
- Patent Title (中): 用于防止处理器的多个线程并行访问源代码的预定部分的方法和装置
-
Application No.: US13658177Application Date: 2012-10-23
-
Publication No.: US08977795B1Publication Date: 2015-03-10
- Inventor: Olaf Mater , Sascha Schmeckenbecher
- Applicant: Marvell International Ltd.
- Applicant Address: BM
- Assignee: Marvell International Ltd.
- Current Assignee: Marvell International Ltd.
- Current Assignee Address: BM
- Main IPC: G06F9/52
- IPC: G06F9/52

Abstract:
Systems, methods, and other embodiments associated with managing access to critical sections in a multithread processor are described. According to one embodiment, an apparatus includes a register configured to store i) respective resource identifiers that identify respective resources and ii) respective priorities for respective resource identifiers. The apparatus includes a managing module logic configured to receive a blocking instruction for a first resource having a first resource identifier that is associated with a first task, access the register to determine a priority associated with the first resource identifier, select one or more dependent resources based, at least in part on the priority associated with first resource identifier, and block the first resource and the dependent resources. In this manner the first task is granted access to the first resource and the dependent resources while other tasks are prevented from accessing the first resource and the dependent resources.
Information query