From a batting perspective, I have thought about this a fair amount and I think for me the answer relies on you having a good plan - if you are in a tight run chase you need to know where the bounderies are going to come from, you need to work out what the bowlers are trying to do and, as the experienced player/in batsman you need to get yourself on strike as mich as possible.
If a Spinner is bowling, you need to look how well the leg side is protected and work out if by good foot movement you can find the boundary there - for example - usually the straight boundaries are well protected. If a quick is on - are fine leg or third man in the right place. Then it is a case of where are you going to get your 2's from - sometimes by not hitting the ball too hard you can turn an easy one into a good two.
there is lots more - but the key is to stay as calm and in control as possible. The same for bowling.