handling parallel threads for user console and server