Pin a thread

Pin a thread