You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
322 B
Python

# Создание процесса, модуль multiprocessing
from multiprocessing import Process
class PrintProcess(Process):
def __init__(self, name):
super().__init__()
self.name = name
def run(self):
print(f"hello {self.name}")
p = PrintProcess("Mike")
p.start()
p.join()