Refined threaded server class structure