News for hackers. Stuff that matters.
Re:Fixing Threads in Ruby 1.8: A 2-10x performance boost by ice799 on Monday May 18, 2009 @02:50PM (#615453)
Hi. Author here.

Ruby 1.9 uses libpthread which creates stacks for its threads in a similar way (mmap and a guard page).

Re:Fixing Threads in Ruby 1.8: A 2-10x performance boost by scott_s on Monday May 18, 2009 @02:55PM (#615465)
You mean it calls pthread_create for every Ruby thread? That would mean threads are no longer green threads, since both of the widely used Pthread libraries on Linux (Linuxthreads on 2.4 versions of the kernel, and NTPL on 2.6) have a 1-to-1 mapping of POSIX threads to kernel threads.
Re:Fixing Threads in Ruby 1.8: A 2-10x performance boost by ice799 on Monday May 18, 2009 @03:29PM (#615525)
correct. but they each take a global interpreter lock ensuring only one is executing at any given time.