About Mysql EVENT

Source: Internet
Author: User


About the Mysql EVENT, Mysql EVENT has been tested for a long time by modifying the system EVENT. It is preliminarily estimated that it uses thread sleep and it is invalid to modify the system EVENT. It will not be executed until a certain interval. Test: www.2cto.com uses sleep instead of scanning all the time. After sleep for a period of time, wait for the next execution, re-obtain the new system time, and re-calculate. So he uses this mechanism, and sleep is a variable. To sum up, Mysql records the start time and interval. the system time and three values are used to calculate the next sleep time. Therefore, the system time is changed during sleep, the sleep time is invalid. That is to say, during sleep, it does not implement the monitoring system time


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.