current_process () 13 print ( ' seconds \n '. sleep ( 1 ) 9 xsq = x ** 2 10 11 # get information on the current process and print to stdout 12 proc = mproc. 1 import os 2 import time 3 import multiprocessing as mproc 4 5 def myfunc ( x ): 6 7 # 1 second delay 8 time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |