Sometimes. I used to work at RIM (BlackBerry) and they announced huge layoffs for August 2012. I knew at that time that my whole team was gone. The rest of the team just talked about how valuable they were and how no one could do the job we were doing. I think they honestly thought that. A lot of people have a tendency to over-value their work and roles.
I think most people are shitty at it on either side. You can be great at your work and role and still get the axe. Management doesn't often take that into consideration.
When it's not whole teams, it's generally managers being told they're losing N reports but they can choose which N. Then, effectiveness at one's role is at least part of the equation.
Generally a company making big layoffs is a sign of a sinking ship. If you are a hot programmer you aren't going to want to hang around waiting for doom. Much better to move to an expanding and thriving company.
In the brave new world of "mobile first, cloud first" what's the least critical 5%? In a "mobile first, cloud first" world, somehow the newly-acquired mobile division is getting the brunt of the cuts.
I was a Zynga until last June, when the shut down their whole Shared Tech Group (basically the core Tech Support for all Teams / Server Management, Engine Development etc.) overnight, the whole group always had the feeling they would not be in danger because after all, pretty much everyone was dependent upon them. Until management thought otherwise, they announced "some cuts" at the Company Meeting, which was on Friday the next Monday we held the severance agreements in our hands and were instructed to leave the office.
You never really know what management is planning unless you know someone up their or are part of it.
Also, I disagree with your assumption that it's easy to know if you're in the bottom 5% of performers. Of course you will have a general idea of where you stand, but in a company the size of Microsoft with considerable organization dysfunction I really doubt anybody can judge themselves with that sort of granularity.
It's even less true when you are talking about merger layoffs. Even if you are good, the Nokia guy might be better.
No -- most people who work at a big company know _exactly_ whether they're in danger or not. We're speaking about 5% of the original (pre-Nokia acquisition) workforce. You must know whether you're in the bottom 5%, or if your product is in the least critical 5%. Of course there are surprises and some good/productive guys will be laid off because of politics (as the process is not completely effective), but in general that's not the case.
I've seen similar things happening inside the financial industry around 2008. Many people left (sometimes much more than 5%), but we could usually guess who's going to be affected (with really high accuracy).