Coroutine-based asynchronous system calling system

An asynchronous system and coroutine technology, applied in inter-program communication, multi-program device, program control design, etc., can solve problems such as not supporting coroutine scheduling, not supporting Linux kernel, etc., and achieve the effect of improving performance

Pending Publication Date: 2020-10-13
ZHEJIANG UNIV
View PDF0 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Problem 1: Coroutine scheduling is not supported
[0007] Question 2: The Linux kernel version 2.6 or above is not supported

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
  • Coroutine-based asynchronous system calling system
  • Coroutine-based asynchronous system calling system
  • Coroutine-based asynchronous system calling system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, and do not limit the protection scope of the present invention.

[0023] The coroutine-based asynchronous system call system provided by the embodiment. This system needs to meet the compatibility and performance requirements and minimize the impact on the original Go language runtime and the Linux operating system kernel. In terms of compatibility, the design purpose of this system is to realize the asynchronous system call based on the Go coroutine without changing the system call interface of the user code, and complete the recording, execution and return functions required by the asynchronous system call by modifying its implementa...

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 invention discloses a coroutine-based asynchronous system calling system, which comprises a recording module, an execution module and a return module; a calling queue is arranged between the recording module and the execution module, and a return queue is arranged between the execution module and the return module; the recording module is used for receiving a system call request initiated by acoroutine, recording system call parameters and coroutine information contained in the system call request, storing the system call parameters and the coroutine information into a call alignment, pausing the coroutine initiating system call, and then judging whether to execute system call or not; the execution module is used for executing the system call transmitted by the call queue by adoptingan auxiliary thread, and storing a system call return value and cothread information into the return queue after the system call is executed; and the return module is used for reading the system callreturn value from the return queue and adding the coroutine to the running queue according to the coroutine information so as to recover coroutine running. The asynchronous execution problem of systemcalling based on the coroutine is solved.

Description

technical field [0001] The invention belongs to the field of operating systems, and in particular relates to an asynchronous system call system based on coroutines. Background technique [0002] As the interface between the application program and the operating system, the system call is the main way for the operating system to provide services to the application program. Common operating systems provide hundreds of different system calls, which provide functions necessary for program operation such as process management, memory management, file reading and writing, and network management. [0003] Although modern processors provide various functions to speed up the execution of system calls, the overhead of system calls is still not negligible. For programs that require a large number of system calls, such as databases and network servers, the operating efficiency of the system calls has a significant impact on the performance of the computer system. The operating system ...

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/54
CPCG06F9/547
Inventor 王总辉刘紫贤李国玺陈文志
Owner ZHEJIANG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products