Always prepare your shotgun when facing a horde. It kills multiple at a time. Then once you're done, run before more get there.
And I was thinking, some people thought that maybe if they killed all the zombies somehow, they would not die, but technically, it is %100 impossible to not die in this, because you'll eventually run out of food and starve to death.