What is M:N scheduling in Ruby 3.3+, and how does it improve thread performance?

Last updated 27 June 2026

  • M:N scheduling (Ruby 3.3+) multiplexes M Ruby threads over N native OS threads instead of the old 1:1 mapping.

  • This lowers per-thread memory and creation cost and improves utilization for I/O-heavy workloads.

  • The GVL still applies within a Ractor. It is opt-in for the main Ractor (RUBY_MN_THREADS) and on by default for additional Ractors.

  • https://www.turing.com/interview-questions/ruby
  • https://www.youtube.com/watch?v=lkunzd5uDrw
  • https://blog.jacobvosmaer.nl/0004-ruby-scheduler-interaction/
  • https://wohotech.in/coding/top-java-interview-questions
  • https://jetthoughts.com/blog/ruby-3-4-yjit-performance-guide/
  • https://speed.ruby-lang.org/
  • https://flexiple.com/python/interview-questions
All Ruby interview questions