Method and system for providing a current time value
AssigneeOracle International Corporation
InventorsDavid Dice, Timothy Paul Marsland
Life of this patent
Estimating the term…
Abstract
A method for providing applications with a current time value includes receiving a trap for an application to access a time memory page, creating, in a memory map corresponding to the application, a mapping between an address space of the application and the time memory page in response to the trap, accessing, based on the trap, a hardware clock to obtain a time value, and updating the time memory page with the time value. The application reads the time value from the time memory page using the memory map.
Claims20
A method for providing applications with a current time value, comprising:
- receiving a first trap for a first application to access a time memory page;
- creating, in a first memory map corresponding to the first application, a first mapping between an address space of the first application and the time memory page in response to the first trap;
- accessing, based on the first trap, a hardware clock to obtain a first time value;
- and
- updating the time memory page with the first time value,
- wherein the first application reads the first time value from the time memory page using the first memory map.
A computer system comprising:
- a processor comprising a hardware clock;
- memory comprising a time memory page;
- a time writer thread configured to:
- access the hardware clock to obtain a first time value, and
- update the time memory page with the first time value;
- and
- a kernel configured to:
- receive a trap for a first application to access the time memory page,
- create, in a first memory map corresponding to the first application, a first mapping between an address space of the first application and the time memory page in response to the trap, and
- trigger the time writer thread to update the time memory page,
- wherein the first application reads the first time value from the time memory page using the first memory map.
A computer readable storage medium comprising computer readable program code embodied therein for causing a computer system to perform a method, the method comprising:
- receiving a first trap for a first application to access a time memory page;
- creating, in a first memory map corresponding to the first application, a first mapping between an address space of the first application and the time memory page in response to the first trap;
- accessing, based on the first trap, a hardware clock to obtain a first time value;
- and
- updating the time memory page with the first time value,
- wherein the first application reads the first time value from the time memory page using the first memory map.
Dependencies are inferred from the claim text.