I grew up on a small farm and our pigs ate our chickens. The coop was near the pig pen and the chickens were free range, able to wander in and out of the pig pen.
The pigs would scatter some of their feed around and then lie very still, waiting for the chickens to come to the scraps, and then as soon as one came within range, Wham!
Eventually all we had left were the bantams and EEs; they seemed to have better survival skills than the big sex links and learned to avoid the pigs. Most of 'em. Most of the time.