question: how to simply turn my server to multiple threads
I tried below , found only one single thread actually handle requests.  

I read `httpbeast` source its thread func use global dispatcher, then I checked chronos almost threaded dispatcher.  

``` nim
when compileOption("threads"):
    proc threadFunc(){.thread.} =
      let address = "0.0.0.0:" & $port
      let flags = {ReuseAddr, ReusePort}
      let r = newRouter[ScorperCallback]()
      r.addRoute(jsonHandler)
      r.addRoute(plaintextHandler)
      var server = newScorper(address, r, flags)
      onThreadDestruction proc(){.raises: [].} =
        try:
          server.stop(); waitFor server.closeWait()
        except:
          discard
      server.start()
      waitFor server.join()

    let numThreads = countProcessors()
    var thr = newSeq[Thread[void]](numThreads)
    for i in 0..high(thr):
      # pinToCpu(thr[i],i+1)
      createThread(thr[i], threadFunc)
    joinThreads(thr)
```