Itimer virtual exmaple1/5/2024 A blocking function stops the program from performing any task until the previous one is completed.įor example, the sleep() function, when we call sleep(2), our program stops at this line for 2 seconds, and thus it acts as a blocking function. Timers are more efficient than using the sleep function because they are not blocking functions as opposed to the latter. Previously we learned how to blink an LED using delays infinitely but this time we will be performing this function using timers instead.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |