it can be 
```
def threads
  @@threads ||= cpu_count
end
```