I/O multiplexing method for System V message queue

A message queue and queue technology, applied in the field of network communication, can solve problems such as deadlock, inconsistency, message sending delay, etc., achieve good processing performance, wide application range, and ensure reliability

Active Publication Date: 2014-09-03
TRAVELSKY
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] In addition, since the operations for well-known pipes and message queues are multiple independent APIs, which are not atomic operations, they will cause inconsistenci

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
  • I/O multiplexing method for System V message queue
  • I/O multiplexing method for System V message queue
  • I/O multiplexing method for System V message queue

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The I / O multiplexing method for the System V message queue of the present invention will be further described in detail below in conjunction with the accompanying drawings:

[0045]Various technologies used in this method, such as socket communication technology, System V message queue operation, and select I / O multiplexing model, are all mature technologies and will not be repeated here. This method involves the flight query process and the WSH process, and the I / O multiplexing of the message queue Q_OUT is realized by the cooperation of these two processes by means of the well-known pipe FIFO.

[0046] Such as figure 2 Shown, the I / O multiplexing method for System V message queue in the present invention comprises steps as follows:

[0047] Step 1, start the WSH process, and the WSH process creates a well-known pipe FIFO and message queue Q_OUT when starting.

[0048] To create a named pipe FIFO is to call the mkfifo system call:

[0049] int mkfifo(const char*pat...

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 relates to the field of network communication and provides an I/O multiplexing method for a System V message queue. The method comprises the following steps that 1. a WSH course is started, and a named pipe FIFO and a message queue Q_OUT are established; 2. the WSH course opens the named pipe FIFO in a non-blocking-read-only mode, and the description symbol of the FIFO is obtained; and 3. the WSH course puts the description symbol of the FIFO into a readable description character set, and a select system, a network socket and the FIFO description symbol are called to carry out I/O multiplexing at the same time. According to the multiplexing method, the FIFO description symbol of the named pipeline technology is similar to the description symbol of the Socket, the description symbol can be called and supported by the select, an FIFO component is added for the WSH course, and accordingly the purpose of I/O multiplexing of the System V message queue is achieved through the FIFO.

Description

technical field [0001] The invention relates to the field of network communication, and provides an I / O multiplexing method for System V message queues. Background technique [0002] System V message queue: System V is a Unix branch version developed by Bell Labs. Message queue is one of the IPC (Interprocess Communication) interprocess communication mechanisms provided by System V. [0003] I / O multiplexing (I / O multiplexing): When a process needs to process multiple network connections or interactive input at the same time, the process informs the operating system kernel in advance, so that once the kernel finds one or more I / O specified by the process When the conditions are ready, it notifies the process to process. This mechanism is called I / O multiplexing. Currently, the system calls that support I / O multiplexing include select, poll, epoll and other calling methods. [0004] Socket: Network socket, a network communication technology. [0005] FIFO: A well-known pipe...

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
IPC IPC(8): G06F17/30
CPCG06F16/24532
Inventor 段锴王海
Owner TRAVELSKY
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