terminology - use 'thread id' instead of 'thread index'