removed all code about THREADS_CONSUMER_SHARING