Principle and implementation of thread pool (C language, linux)

     Preface: Introduction and use of assert assertions in linux.

  assert is a macro function commonly used in program debugging. When the program is running, the expression in the assert() parentheses is calculated. If it is false, an error will be reported, and the program will be terminated. On the contrary, it will continue to run.

In short: the function of the assert() function is to terminate the program so as not to cause more serious errors, and it is also used to find errors.

   

Guess you like

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