multi threading unix sample works