Need to create multiple threads

Hi , i need to run multiple scripts parallely ,on my server....i have 8 cpus . planning to run minimum of 6 scripts paralley ....could you please suggest someone .

thanks in advance ,

What scripts are you trying to run in parallel?

Are they interactive? (If not, why isn't running them asynchronously sufficient?)

Possible options :

  • GNU Parallel
  • Running scripts simultaneously in background and implements control over them.
  • Similar to above, re-design your implementation and using some functions run them in parallel

Again, its purely depends on your purpose of the jobs.

1 Like

hth