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

Method for sending lots of mails in observer mode

An observer mode and email technology, applied in the field of cloud computing, can solve the problems of high transmission efficiency, high load and coupling, and large resource occupation, and achieve easy promotion, reduce load and coupling, and strong practicability. Effect

Inactive Publication Date: 2014-08-06
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing technology, a large number of emails are sent in a single-threaded, queue-based synchronous sending process, which takes up a lot of resources, high load and coupling, and the sending efficiency is not boiled

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 for sending lots of mails in observer mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0051] First add the mail information (sms for short) in each thread to the same Queue object. Queue is thread-synchronized to ensure that no data errors will occur when multiple threads add at the same time.

[0052] Then it is controlled by the synchronization block synchronized. At the same time, the class object that sends the mail controls the communication lock to form the communication between the sending thread and each requesting thread.

[0053] When the request thread add is completed, call the notify() method to wake up one of all the sending threads. The awakened sending thread enters the working state after knowing that there are "new" mails to be sent. When all the mails are sent After that, the awakened thread goes back to sleep again.

[0054] When a large number of emails need to be sent, multiple sleeping threads will be awakened one by one and enter the working state.

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 provides a method for sending lots of mails in an observer mode. The method comprises the steps that a mail sending assembly is constructed; the mail sending assembly comprises a thread synchronization queue object, a thread communication module, a thread sending module and a data collecting module; when a mail sending request reaches, mail information is timely stored into an internal memory, then a success signal is fed back to a mail sender and request submitting is completed; the mail information is arranged in order in the internal memory and sent by the thread sending module sequentially; when all ordered mails in the physical internal memory are sent and it is found out that no mail object exists in a mail queue object, the thread communication module is informed and a working thread is in a sleeping state; when data are submitted, the thread is woken up by the thread communication module to be in a working state. Compared with the prior art, the method for sending lots of mails in the observer mode has the advantages that lots of mails are stored timely and sent orderly, the program working thread can sleep intelligently and the practicability is high.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a method for reducing resource occupancy, sequentially sending, and sending a large amount of mails in an observer mode. Background technique [0002] Cloud computing is a milestone development stage in the history of computer development. In this stage, a large number of physical resources will appear in the form of data centers, and professional data center companies will be engaged in the management and planning of physical resources. The resource demand side no longer needs to build a high-cost data center by itself, but rents computing resources from a professional data center. [0003] The concentration of physical resources brings about the application of massive data and more frequent interactions. As one of the common modes of interaction, email notifications and alarms bear the brunt. [0004] In the prior art, the process of sending a large number of emails i...

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): H04L12/58H04L29/08
Inventor 李新虎于辉刘俊朋郭锋刘正伟
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD