Project

General

Profile

Actions

Feature #3436

closed

Spawn the timer thread lazily

Added by mxey (Maximilian Gass) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:30756]

Description

=begin
As discussed in http://redmine.ruby-lang.org/issues/show/1820, Ruby 1.9.1
always spawns a timer thread which is required to handle scheduling of Ruby
threads. Rubinius did the same and I suggested to only spawn the thread if it
is required, only when Ruby threading is used. I don't know anything about the
internals of Ruby, but could this method be used in MRI as well?

The timer thread prevents the CPU from going idle and saving power/battery, so it would be nice to avoid it.
=end


Files

bug_3436-spawn_the_timer_thread_lazily.patch (4.9 KB) bug_3436-spawn_the_timer_thread_lazily.patch A patch against trunk to add this feature Spakman (Mark Somerville), 10/05/2010 03:09 AM
noname (207 Bytes) noname Spakman (Mark Somerville), 03/07/2011 08:23 PM
noname (207 Bytes) noname Spakman (Mark Somerville), 04/12/2011 08:17 PM
noname (207 Bytes) noname Spakman (Mark Somerville), 04/12/2011 08:18 PM
noname (207 Bytes) noname Spakman (Mark Somerville), 07/01/2011 12:23 AM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #3919: Ruby in PowerTOP - too many CPU wakeupsClosedko1 (Koichi Sasada)10/08/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0