The cause of anger is that the things are not done as you want or are not done in time. To lose temper is no solution. What I do, I find solution. If things are not done in time - it means I have also not noted the urgency and if things are not done as I wanted - it means the other person may not be able to grasp how I want - the solution of this is - don't say him again or shout - do it yourself by just taking details of the case. As regards boss - if he/she does not agree with your viewpoint - o.k. - follow his viewpoint because the result of the same will itself prove who is right or wrong - no arguments - no losing of temper.
Actually I read and practised that if before losing temper you see yourself whether I may be wrong somewhere - substantial anger will go away and the rest will go with finding of solution. Output of your subordinates and boss will best be achieved if you you a solution fider than fault finder.