Timothy,
Very true. One way I've found effective is to give short assignments that are worth points, and students have just a short or fixed time to complete them. This keeps them busy, and unless they don't want or need the points, they're keep busy. Other times, I'll ask specific students questions and that'll alert them that they have to pay attention.
Barry Westling