Make sever work with 1 or more threads specified.