Can't find process listed by `jobs` command
问题 I am using jobs command to control the number of compute-intensive processes. I want to not run more than max_cnt processes at a time, and stop only when all the processes have stopped. I use below bash script to accomplish this. However, this code always lists one process as running even after everything has executed and stopped. Moreover, I can't find that process listed in htop 's list of processes. What should I do or where should I look for that process that is listed by the result of