Re: Will "hello" always be printed?

2022-10-07 Thread MRAB
point of join() is that 'hello' should always be printed, but I just want to make sure that I understand it correctly. That's the purpose of using `join`, but you need to use it correctly. The "some tasks are not completed" condition which `join` supports doesn't fit what you're doing. So y

Re: Will "hello" always be printed?

2022-10-07 Thread Cameron Simpson
() queue.task_done() #unfished tasks = 0 queue.put(1) #unfinished tasks 1[/python] the unfished tasks refers to what is written in the documentation ( https://docs.python.org/3/library/multiprocessing.html#multiprocessing.JoinableQueue.join ) will 'hello' always be printed? Or is there a chance

Will "hello" always be printed?

2022-10-07 Thread Robin van der veer
(1) #unfinished tasks 1[/python] the unfished tasks refers to what is written in the documentation ( https://docs.python.org/3/library/multiprocessing.html#multiprocessing.JoinableQueue.join ) will 'hello' always be printed? Or is there a chance that the put in process 2 executes before process 1