I don't need any syntax modification that's why I didn't posted the code.
Also may be you did not get the problem, It is related to thread priority concepts
rather than code modification that can be solved by changing syntax.