Wip sharded threadpool

This is a pull request for sharded thread-pool.
thread_index++;