From: Eric Wong Date: 2018-08-08T07:55:08+00:00 Subject: [ruby-core:88348] Re: [Ruby trunk Feature#14717] [PATCH] thread: allow disabling preempt ko1@atdot.net wrote: > I don't think it is good idea to support > `Thread#preemptible=false` because someone can misuse this > feature as "locking" like `Thread.exclusive` on Ruby 1.8 (this > method prevented thread switching. From 1.9, this method > changed meaning). Fair enough. We can close this issue > and this is what auto-fiber do. I don't against to introduce > auto-fiber if the name is related to Thread (not related to > Fiber. The implementation is based on Fiber, but the semantics > is not Fiber. They should not have `#resume` method and so > on). OK, I will call [Feature #13618] "Thread::Green" or something similar. I should be done with it once timer-thread-elimination is fixed and Timeout-in-VM is done (so maybe one more week or two). rb_thread_sleep_* for green threads requires sharing data structures with Timeout. Unsubscribe: