发明名称 Ledger-based resource tracking
摘要 Disclosed are systems, methods, and non-transitory computer-readable storage media for tracking and managing resource usage through a ledger feature that can trigger complex real-time reactions. The resource tracking can be managed through a ledger module and a ledger data structure. The ledger data structure can be updated each time a task requests a resource. Additionally, as part of the update, the ledger module can verify whether a resource has been over consumed. In response to the detection of an over consumption, the ledger module can set a flag. At some later pointer when the thread is in a stable, well-understood point, the ledger module can check if the flag has been set. If the flag has been set, the ledger module can call the appropriate callback function, which can react to the over consumption in a resource specific manner.
申请公布号 US9411650(B2) 申请公布日期 2016.08.09
申请号 US201514810288 申请日期 2015.07.27
申请人 Apple Inc. 发明人 Magee James Michael;Nieuwejaar Nils A.;Vaishampayan Umesh S.
分类号 G06F9/46;G06F9/50;G06Q10/06 主分类号 G06F9/46
代理机构 Downey Brand LLP 代理人 Downey Brand LLP
主权项 1. A non-transitory computer-readable storage media storing instructions which, when executed by a computing device, causes the computing device to perform steps comprising: receiving, at a processor, a resource request from a task, the task associated with a resource tracking object including: (i) a reference to a template including an entry identifying the task and a pointer to a callback function, wherein the callback function is specific to the resource requested, and(ii) an entries object including an entry for the resource requested with a corresponding balance of current resources consumed and a corresponding predefined resource limit of the resource requested, wherein values of the balance and the limit are defined specific to the resource; registering, at the processor, the resource for tracking in the template; and updating, at the processor, the balance of resources consumed, wherein the updating comprises comparing the balance of resources consumed against the predefined resource limit, and setting a flag when the balance exceeds the predefined resource limit.
地址 Cupertino CA US
您可能感兴趣的专利