Home > OS >  Inux under system () function performs many times later, threads to express out problem?
Inux under system () function performs many times later, threads to express out problem?

Time:12-10



Company products with z7000 now, system version for XLNX - 4.0, petalinux version for petalinux v2015.4 - final, the compiler for the arm - the xilinx - Linux - gnueabi - GCC,

Multithreaded code for A single process, product code pressure test, now found in the code, A thread with many times after the shell command system () implementation, thread their exit B, A, B threads without any intersection, access to the resources nor the conflict, and thread B exit has no return value, you did not receive any signal process, detection system () returns, are also normal, excuse me each, have encountered similar problems, for A long time!!!!!! First thanked

CodePudding user response:

You must be perform shell cause to the system? If A thread is doing nothing, B will exit?
  • Related