mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
12 lines
242 B
Python
12 lines
242 B
Python
from __future__ import print_function
|
|
from multiprocessing import Pool
|
|
from time import sleep
|
|
|
|
if __name__ == '__main__':
|
|
pool = Pool(4)
|
|
pool.map(print, ['1', '2', '3'])
|
|
pool.close()
|
|
pool.join()
|
|
sleep(1)
|
|
print('Done')
|