FAQ#25

Why does subtle cause to many wakeups?

Added by Christoph Kappel over 5 years ago. Updated by Christoph Kappel over 5 years ago.

Category: General Difficulty: Difficulty2
Assignee: - Due date:
Related issue: - Related Message: -
Related version: - Views: 3226
Valid: Valid

Answer

The wakeups are caused by a Ruby internal polling thread that runs every 10ms to schedule/handle other threads and signals. There is currently no way to avoid that in YARV, although the problem is well known.

http://www.ruby-forum.com/topic/200147

There is finally some progress regarding this: http://www.ruby-forum.com/topic/549998

Also available in: PDF