Major pthreads dispatch overhaul