a multi thread sample using queue