getter and setter for max_threads and queue implemented