from multiprocessing import Process
print(__name__)
def u_name (a):
for i in range(10):
print(a)
if __name__ == '__main__':
while True:
for i in range(100):
if i == 2:
print(i)
a = input("Ваше имя: ")
p_func1 = Process(target=u_name, args=(a, ))
p_func1.start()
print('Старт процесса')
p_func1.join()
multiprocessing.freeze_support()
, после if __name__ == __main__
.__name__ = __main__