Hi, I really like your post which does me a favor a lot on comprehend multi-thread.
And I only get an question here to ask, executed_tasks += 1, don't we need to put that into mutex.synchronize to be an atomic execution ?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, I really like your post which does me a favor a lot on comprehend multi-thread.
And I only get an question here to ask,
executed_tasks += 1
, don't we need to put that intomutex.synchronize
to be an atomic execution ?