このようなコードを使用する場合
def execute_run(list_out):
... do something
pool = ThreadPoolExecutor(6)
for i in list1:
for j in list2:
pool.submit(myfunc, list_out)
pool.join()
スレッドが list_out を変更すると仮定すると、それらは同期的にそれを行いますか?
このようなコードを使用する場合
def execute_run(list_out):
... do something
pool = ThreadPoolExecutor(6)
for i in list1:
for j in list2:
pool.submit(myfunc, list_out)
pool.join()
スレッドが list_out を変更すると仮定すると、それらは同期的にそれを行いますか?