-3

Does the Iron framework support multithreaded mode? How do I enable & configure it?

MajidTaheri
  • 3,813
  • 6
  • 28
  • 46

1 Answers1

3

It is enabled by default.

The primary structure in Iron is Iron, you can start the server using either the http or listen_with methods.

For http:

Defaults to a threadpool of size 8 * num_cpus.

For listen_with: the signature takes a threads usize argument:

Kick off the server process with X threads.

Where I suppose X stands for the number of threads passed as argument.

Matthieu M.
  • 287,565
  • 48
  • 449
  • 722