Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for accessing virtual machine to coroutine library, and equipment

A virtual machine and coroutine library technology, applied in the Internet field, can solve problems such as inability to execute Java code, inability to simply integrate high-level language virtual machines, and inability to directly use coroutine libraries, etc., to achieve the effect of improving practicability

Pending Publication Date: 2021-06-04
ALIBABA GRP HLDG LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In specific applications, the coroutine library is generally used in system programming, providing a C language interface for users to call, and cannot be simply integrated into a high-level language virtual machine
If the above-mentioned coroutine library is directly called in a virtual machine of a high-level language such as Java to create a coroutine; then, since the execution of Java code often relies on complex runtime data structures, the newly created coroutine cannot execute Java code
This leads to the inability to directly use existing coroutine libraries for high-level language runtimes that were not designed with coroutines in mind

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for accessing virtual machine to coroutine library, and equipment
  • Method and device for accessing virtual machine to coroutine library, and equipment
  • Method and device for accessing virtual machine to coroutine library, and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0069] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0070] Terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the conte...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a method and device for accessing a virtual machine to a coroutine library, and equipment. The method applied to the virtual machine comprises: acquiring a starting instruction; according to the starting instruction, determining at least one coroutine library used for accessing the virtual machine in a plurality of preset coroutine libraries; performing initialization operation on the virtual machine according to the starting instruction; and sending a state instruction used for identifying the running state of the virtual machine to the coroutine library, so that the coroutine library carries out coroutine library initialization operation according to the state instruction. At least one coroutine library used for accessing the virtual machine is determined in the multiple preset coroutine libraries, the state instruction can be sent to the coroutine library after the virtual machine is initialized, the coroutine library initializes the coroutine library according to the state instruction, data interaction between the virtual machine and any coroutine library can be effectively achieved, any coroutine library can be integrated with the virtual machine in any language, and different coroutines can be used in different scenes, so that the optimal performance is obtained.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to a method, device and equipment for a virtual machine to access a coroutine library. Background technique [0002] A coroutine library refers to a library that encapsulates coroutine functions. Currently, there are many types of coroutine libraries, and different coroutine libraries have different focuses. Some focus on delay, and some focus on ease of use. It can be said that , Different coroutine libraries have their own advantages. In specific applications, the coroutine library is generally used in system programming and provides a C language interface for users to call, but cannot be simply integrated into a high-level language virtual machine. If the above-mentioned coroutine library is directly called in a virtual machine of a high-level language such as Java to create a coroutine; then, since the execution of Java code often relies on complex runtime data str...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/448G06F9/455
CPCG06F9/449G06F9/45558G06F2009/45575
Inventor 郁磊向伟李三红张佳郑孝林
Owner ALIBABA GRP HLDG LTD