Since the tasks are not waiting on any object or variable, there will be no dead lock. I guess you do need to add if (rcvd == false) in task B before the line rcvd = true;
«_Superman_» _I love work. It gives me something to do between weekends.
_Microsoft MVP (Visual C++) (October 2009 - September 2013)
Polymorphism in C