JP2003036123A - Time management system for computer - Google Patents

Time management system for computer

Info

Publication number
JP2003036123A
JP2003036123A JP2001224006A JP2001224006A JP2003036123A JP 2003036123 A JP2003036123 A JP 2003036123A JP 2001224006 A JP2001224006 A JP 2001224006A JP 2001224006 A JP2001224006 A JP 2001224006A JP 2003036123 A JP2003036123 A JP 2003036123A
Authority
JP
Japan
Prior art keywords
time
virtual machine
computer
time management
current time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001224006A
Other languages
Japanese (ja)
Inventor
Tsutomu Shima
努 志磨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP2001224006A priority Critical patent/JP2003036123A/en
Publication of JP2003036123A publication Critical patent/JP2003036123A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a time management system for a computer which allows respective virtual machines on a computer having a plurality of virtual machine functions by itself to have unique times. SOLUTION: The virtual machines A and B read in the current time from an internal clock of the computer or a base OS and add relative time optionally set by the virtual machines to the current time to have their internal clocks.

Description

【発明の詳細な説明】 【0001】 【発明の属する技術分野】本発明は、1台で複数の仮想
マシン機能を持つコンピュータに係り、特に各仮想マシ
ン内の時刻管理方式に関する。 【0002】 【従来の技術】最近のコンピュータは、その処理性能の
向上により、1台のコンピュータ上で、他の種類のオペ
レーティングシステム(OS)を模擬して、1台のコン
ピュータ上に複数の仮想マシンを動作させることが可能
になっている。 【0003】このことにより、異なった種類のOS上で
動作するアプリケーションソフトを1台のコンピュータ
上で、同時に実行することができる。 【0004】 【発明が解決しようとする課題】上記のコンピュータに
おいて、各仮想マシンで使用する時刻情報は、図2に示
すように、仮想マシンA、Bはそのコンピュータ又はO
S内のシステム時刻を現在時刻として読み込みと書き込
みで利用している。このため、複数の仮想マシンの現在
時刻は常に一致している。 【0005】しかしながら、ある特定の仮想マシンのみ
は、時刻を変更して処理を実行したい場合がある。例え
ば、特定の仮想マシンを使って時刻が大変重要なアプリ
ケーションソフトを試験する場合、時刻を変更すること
が必要となる。しかし、そのコンピュータ自身の時刻を
変更することなく、そのアプリケーションソフトを任意
時刻を基に動作させることができない。 【0006】本発明の目的は、1台で複数の仮想マシン
機能をもつコンピュータにおいて、各仮想マシンに固有
の時刻を持たせることができるコンピュータの時刻管理
方式を提供することにある。 【0007】 【課題を解決するための手段】本発明は、前記の課題を
解決するため、各仮想マシンにはコンピュータまたはベ
ースOS上の現在時刻に仮想マシン固有の相対時間を加
えた時刻とする時刻管理機能をもたせるようにしたもの
で、以下の構成を特徴とする。 【0008】1台で複数の仮想マシン機能を持ち、各仮
想マシンに共通のシステム時計をもつコンピュータにお
いて、各仮想マシンは、前記システム時計から現在時刻
を読み込み、この現在時刻に各仮想マシン毎に任意設定
する相対時間を加算して当該マシンの内部時刻とする時
刻管理機能を備えたことを特徴とする。 【0009】 【発明の実施の形態】図1は、本発明の実施形態を示す
時刻管理のための機能ブロック図である。仮想マシンA
と仮想マシンBは、それらの内部時刻には、コンピュー
タまたはベースOS上の現在時刻を読み込み、この現在
時刻に仮想マシンに予め任意設定する固有の相対時間を
加えた時刻とする時刻管理機能をもたせる。 【0010】 【数1】仮想マシンの内部時刻=ベースOS時刻+仮想
マシン固有の相対時間 すなわち、仮想マシン毎に固有の相対時間(正負の極性
をもつ)を設定可能にし、仮想マシンの内部時刻は、そ
のコンピュータまたはベースOSが持っている時刻から
の相対時間として管理する。 【0011】例えば、図1では、コンピュータまたはベ
ースOSの現在時刻が、「2000年9月27日10:
40:30」の場合、仮想マシンAでは、その相対時間
=0として現在時刻を読み込み、これに相対時間を加算
した内部時刻に「2000年9月27日10:40:3
0」と、現在時刻と同じ時刻情報を使用したマシン処理
を行う。 【0012】一方、仮想マシンBでは、その相対時間=
−1年として現在時刻を読み込み、これに相対時間を加
算した内部時刻に「1999年9月27日10:40:
30」を得てマシン処理を行う。 【0013】このように、各仮想マシンには、ベースO
S等の現在時刻にマシン毎に設定する相対時間を加算処
理する時刻管理機能を持たせることで、仮想マシンが独
自の時刻を持つにはそれぞれの相対時間を設定すること
で済む。このとき、仮想マシン内の時刻を変更するも、
他の仮想マシンに影響を及ぼすことはない。また、仮想
マシン内の時刻を絶対時刻で管理すると、時刻合わせに
よる誤差が出てくるが、相対時間で合わせるため、誤差
がでることはない。 【0014】なお、仮想マシン間の時刻を合わせたいと
きは、その相対時間を同一にすれば良いし、相対時間を
0にすることにより従来の時刻管理方式と同じに全マシ
ンが同一時刻を持つことができる。 【0015】また、図1では、2つの仮想マシンA,B
とする場合を示すが、3つ以上の仮想マシン機能をもつ
コンピュータに適用して同等のものを実現することがで
きる。 【0016】 【発明の効果】以上のとおり、本発明によれば、各仮想
マシンにはコンピュータまたはベースOS上の現在時刻
に仮想マシン固有の相対時間を加えた時刻とする時刻管
理機能をもたせるようにしたため、各仮想マシンに固有
の時刻を持たせることができる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer having a plurality of virtual machine functions, and more particularly to a time management system in each virtual machine. 2. Description of the Related Art In recent computers, due to the improvement of processing performance, a plurality of virtual machines are simulated on one computer by simulating another type of operating system (OS) on one computer. It is possible to operate the machine. [0003] Thus, application software running on different types of OSs can be simultaneously executed on one computer. [0004] In the above-described computer, the time information used by each virtual machine is, as shown in FIG.
The system time in S is used for reading and writing as the current time. For this reason, the current times of the plurality of virtual machines always match. [0005] However, there is a case where only a certain virtual machine wants to change the time and execute processing. For example, when testing application software whose time is very important using a specific virtual machine, it is necessary to change the time. However, the application software cannot be operated based on an arbitrary time without changing the time of the computer itself. SUMMARY OF THE INVENTION An object of the present invention is to provide a computer time management system in which a single computer having a plurality of virtual machine functions can give each virtual machine a unique time. According to the present invention, in order to solve the above-mentioned problems, each virtual machine has a time obtained by adding a relative time unique to the virtual machine to a current time on a computer or a base OS. It has a time management function, and is characterized by the following configuration. In one computer having a plurality of virtual machine functions and having a common system clock for each virtual machine, each virtual machine reads the current time from the system clock, and reads the current time for each virtual machine. It is characterized by having a time management function that adds an arbitrarily set relative time to set the internal time of the machine. FIG. 1 is a functional block diagram for time management showing an embodiment of the present invention. Virtual machine A
And the virtual machine B have a time management function of reading the current time on the computer or the base OS as their internal time, and adding a unique relative time arbitrarily set in advance to the virtual time to the current time. . The internal time of the virtual machine = the base OS time + the relative time peculiar to the virtual machine, that is, the relative time peculiar to each virtual machine (having positive and negative polarities) can be set, and the internal time of the virtual machine can be set. Is managed as a relative time from the time held by the computer or the base OS. For example, in FIG. 1, the current time of the computer or the base OS is “September 27, 2000, 10:
In the case of “40:30”, the virtual machine A reads the current time as the relative time = 0, and adds “10: 40: 3 on September 27, 2000” to the internal time obtained by adding the relative time to the current time.
"0" and machine processing using the same time information as the current time. On the other hand, in virtual machine B, its relative time =
The current time is read as -1 year, and the internal time obtained by adding the relative time to the current time is added to "10:40: September 27, 1999:
30 "is obtained and machine processing is performed. As described above, each virtual machine has a base O
By providing a time management function for adding the relative time set for each machine to the current time such as S, the relative time can be set for the virtual machine to have its own time. At this time, even if the time in the virtual machine is changed,
It does not affect other virtual machines. In addition, if the time in the virtual machine is managed by the absolute time, an error due to time adjustment appears. However, since the time is adjusted by the relative time, no error occurs. When it is desired to match the time between virtual machines, the relative time may be the same, and by setting the relative time to 0, all the machines have the same time as in the conventional time management method. be able to. In FIG. 1, two virtual machines A and B
However, the present invention can be applied to a computer having three or more virtual machine functions to realize an equivalent computer. As described above, according to the present invention, each virtual machine is provided with a time management function that sets a time obtained by adding a relative time unique to the virtual machine to the current time on the computer or the base OS. Therefore, each virtual machine can have a unique time.

【図面の簡単な説明】 【図1】本発明の実施形態を示す時刻管理のための機能
ブロック図。 【図2】従来の時刻管理のための機能ブロック図。 【符号の説明】 A、B…仮想マシン
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a functional block diagram for time management according to an embodiment of the present invention. FIG. 2 is a functional block diagram for conventional time management. [Description of Signs] A, B: Virtual Machine

Claims (1)

【特許請求の範囲】 【請求項1】 1台で複数の仮想マシン機能を持ち、各
仮想マシンに共通のシステム時計をもつコンピュータに
おいて、 各仮想マシンは、前記システム時計から現在時刻を読み
込み、この現在時刻に各仮想マシン毎に任意設定する相
対時間を加算して当該マシンの内部時刻とする時刻管理
機能を備えたことを特徴とするコンピュータの時刻管理
方式。
Claims: 1. A computer having a plurality of virtual machine functions in a single machine and having a system clock common to each virtual machine, wherein each virtual machine reads a current time from the system clock, and A time management method for a computer, comprising a time management function of adding a relative time arbitrarily set for each virtual machine to a current time and setting the time as an internal time of the virtual machine.
JP2001224006A 2001-07-25 2001-07-25 Time management system for computer Pending JP2003036123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001224006A JP2003036123A (en) 2001-07-25 2001-07-25 Time management system for computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001224006A JP2003036123A (en) 2001-07-25 2001-07-25 Time management system for computer

Publications (1)

Publication Number Publication Date
JP2003036123A true JP2003036123A (en) 2003-02-07

Family

ID=19057249

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001224006A Pending JP2003036123A (en) 2001-07-25 2001-07-25 Time management system for computer

Country Status (1)

Country Link
JP (1) JP2003036123A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007099624A1 (en) * 2006-03-01 2007-09-07 Fujitsu Limited Method for managing and controlling time of computer system and computer system
WO2012093490A1 (en) * 2011-01-07 2012-07-12 富士通株式会社 Information processing device, time control method, and time control program
WO2012117526A1 (en) * 2011-03-01 2012-09-07 株式会社日立製作所 Computer, computer time administration method
US9672135B2 (en) 2015-11-03 2017-06-06 Red Hat, Inc. System, method and apparatus for debugging of reactive applications
JP2021506037A (en) * 2018-09-20 2021-02-18 中興通訊股▲ふん▼有限公司Zte Corporation Network cards, time synchronization methods and devices, and computer storage media

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007099624A1 (en) * 2006-03-01 2007-09-07 Fujitsu Limited Method for managing and controlling time of computer system and computer system
JPWO2007099624A1 (en) * 2006-03-01 2009-07-16 富士通株式会社 Computer system time management control method and computer system
JP4606493B2 (en) * 2006-03-01 2011-01-05 富士通株式会社 Computer system time management control method and computer system
US8255920B2 (en) 2006-03-01 2012-08-28 Fujitsu Limited Time management control method for computer system, and computer system
WO2012093490A1 (en) * 2011-01-07 2012-07-12 富士通株式会社 Information processing device, time control method, and time control program
WO2012117526A1 (en) * 2011-03-01 2012-09-07 株式会社日立製作所 Computer, computer time administration method
US9672135B2 (en) 2015-11-03 2017-06-06 Red Hat, Inc. System, method and apparatus for debugging of reactive applications
US10229033B2 (en) 2015-11-03 2019-03-12 Red Hat, Inc. System, method and apparatus for debugging of reactive applications
JP2021506037A (en) * 2018-09-20 2021-02-18 中興通訊股▲ふん▼有限公司Zte Corporation Network cards, time synchronization methods and devices, and computer storage media
US11609598B2 (en) 2018-09-20 2023-03-21 Zte Corporation Network card, time synchronization methods and devices, and computer storage media

Similar Documents

Publication Publication Date Title
CN107463427A (en) The acquisition methods and device of a kind of VME operating system type and version
WO2020211483A1 (en) Method and apparatus for storing and executing smart contract in blockchain, and electronic device
CN111736922B (en) Plug-in calling method and device, electronic equipment and storage medium
TW202027455A (en) Method and apparatus for performing evidence storage on structured work based on blockchain
WO2021045829A1 (en) Byzantine consensus without centralized ordering
JP2003036123A (en) Time management system for computer
Chaudhuri Creeping tiger, soaring dragon: India, China and competition in information technologies
JPH11259496A (en) Integrated managing method of bookmarks between plural browsers
US20060293877A1 (en) Method and apparatus for uni-lingual workflow usage in multi-lingual data center environments
JP2008269515A (en) Method for dynamically generating image layout by parameter
CN101667126A (en) Method for burning computer serial number
JP3287283B2 (en) PCI bus interrupt steering circuit
TW202101205A (en) Parameter synchronization method, device, and storage medium
CN111897612A (en) Page updating method and device, electronic equipment and storage medium
GB2409310A (en) Avoiding name collision for ACPI control methods
US7843961B2 (en) Hardware device emulation
KR20220124888A (en) Integration management system for enterprises and institutions information using block chain
CN117201316A (en) Distributed control system cluster deployment method, system, equipment and medium
Lee PowerShell 7 for IT Professionals
KR20220124889A (en) Method and apparatus for matching investment institutions for start-up according to investment stages
JP2954019B2 (en) Logic simulation method
JP2928128B2 (en) CPU peripheral device simulation method and method
CN117667028A (en) Cross-department collaboration system under micro front end architecture
CN115221476A (en) Chip frame design method and system
JPH02114329A (en) Terminal software path execution system