Added the ability to use a thread involved with Posix environment.