Switching processes in mesoscopic systems