"man select" will tell you how select works