Invention Grant
US09003131B1 Method and system for maintaining context event logs without locking in virtual machine
有权
维护上下文事件日志而不锁定虚拟机的方法和系统
- Patent Title: Method and system for maintaining context event logs without locking in virtual machine
- Patent Title (中): 维护上下文事件日志而不锁定虚拟机的方法和系统
-
Application No.: US13851154Application Date: 2013-03-27
-
Publication No.: US09003131B1Publication Date: 2015-04-07
- Inventor: Denis Lunev
- Applicant: Parallels IP Holdings GmbH
- Applicant Address: CH Schaffhausen
- Assignee: Parallels IP Holdings GmbH
- Current Assignee: Parallels IP Holdings GmbH
- Current Assignee Address: CH Schaffhausen
- Agency: Bardmesser Law Group
- Main IPC: G06F12/10
- IPC: G06F12/10 ; G06F3/06

Abstract:
System for working with shared memory includes a plurality of contexts, each having executable processes writing and reading data; a ring buffer in the shared memory for writing and reading data by the contexts; a software primitive manages access attempts by the contexts to the ring buffer. Each context, upon writing to the ring buffer, is allocated an amount of space up to a maximum available at that moment. The software primitive guarantees consistency of the data written to the ring buffer. The software primitive permits simultaneous writing into the buffer by multiple contexts. After finishing writing to the buffer, the context updates a state of the buffer by decrementing the count of the active writers and/or by shifting the permitting pointers for communicating with writers and readers. A context can read from the buffer only data is marked as valid for reading by the context that wrote that data.
Information query