Is it possible to get the TID of the thread that is currently running on a logical core, such as logical core 0? This is easy to do in kernel space, but I am not sure how to get the thread information from userspace.