Sleep in Linux Kernel

Source: Internet
Author: User
Linux Kernel sleep-general Linux technology-Linux programming and kernel information. For details, see the following. A problem occurred during debugging over the past few days. DVBH was not smooth enough to play online, but it was always stuck in one card. Many experiments were conducted, such as tracking the audio and video decoding time.

Finally, a problem was found in the driver for receiving media streams. packet interruption occurs, that is, the interruption is very frequent in a certain period of time, resulting in other tasks during that period-such as decoding-no time to be scheduled, this causes a "card" problem at that time.

Finally, we only forcibly execute "schedule" once after the interrupt processing is complete, so that other tasks have the opportunity to be scheduled (simply call sleep (0.

It seems that proper sleep in the kernel driver is very important.
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.