Server multi thread functional