Several infinite loops are common in embedded:

Several common infinite loops in embedded:
(1) The operating system is an infinite loop;
(2) The WIN32 program is an infinite loop;
(3) The embedded system software is an infinite loop;
(4) The thread processing function of the multi-threaded program is Infinite loop.


You might argue and say out loud, "Nothing is absolute, 2, 3, 4 can't be an infinite loop". Yes, you areright, but you don't get flowers and applause . In fact, this is a point that doesn't make much sense, because the world never needs a WIN32 program that shouts to the OS to kill it after processing a few messages, and does not need an embedded system that breaks itself as soon as it starts RUN. , no need to inexplicably start a thread that kills itself by doing something. Sometimes, being overly rigorous creates trouble rather than convenience.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325388303&siteId=291194637