Correctly designed tasks will not lead to deadlock.
No machine-readable source provided. Own work assumed (based on copyright claims).
No machine-readable author provided. LukMak assumed (based on copyright claims).