zmapThreads - thread handling functions used for servers

Summary

There are some notes about thread shutdown and server termination here.