Библиотека ansible плейбуков на разные случаи
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.py 269B

12345678910111213
  1. import time
  2. import multiprocessing
  3. import child_process
  4. print("Hello world")
  5. processes = [None] * 4
  6. for i in range(4):
  7. processes[i] = multiprocessing.Process(target=child_process.run, args=(i,))
  8. processes[i].start()
  9. for i in range(4):
  10. processes[i].join()