educative.io

Can the condition, which is the variable found_prime, change once the printer thread is woken up?

Hi,

I didnt understand the reason for the question: Can the condition, which is the variable found_prime , change once the printer thread is woken up?

How does ‘whil’ and ‘if’ matter when we have multiple threads?? In the explanation, issue was raised against only one thread executes before others. is our usecase print the same prime from multiple threads?

Thanks,
Rajesh

Thanks