Threads: Added support for setting a thread time quanta. This is mostly intended to be used to identify code that inhibits other threads from running.