# -*- coding: utf-8 -*-
from multiprocessing import Process
import time
import setproctitle
def deadloop():
while True:
pass
def task(name):
print("name=", name)
deadloop()
time.sleep(30)
if __name__ == "__main__":
setproctitle.setproctitle('quark3')
start = time.time()
p1 = Process(target=task, args=("safly1",), name='quark service1')
p2 = Process(target=task, args=("safly2",), name='quark service2')
p3 = Process(target=task, args=("safly3",), name='quark service3')
p4 = Process(target=task, args=("safly4",), name='quark service4')
p5 = Process(target=task, args=("safly5",), name='quark service5'