created a global variable to access the acceptor thread