Making the queue growable Add padding to avoir false sharing Add sleep() and SwitchToThread() to limit spinning