Sampling fix

set timout to 0 in select to improve performance in Queuing.c and
sampling.c (librairy)
corection of usecase sampling