SizedQueue « Threads « Ruby





1.Use SizedQueue to coordinate producer and consumer