From cf6ec79b37a2efcd477ff76c480c570bcf17bf69 Mon Sep 17 00:00:00 2001 From: normal Date: Sun, 2 Apr 2017 01:14:14 +0000 Subject: thread.c: comments on M:N threading [ci skip] I may experiment with M:N threading in coming months. Often I find myself yearning for the old 1.8 days when spawning threads was really cheap for network operations. But I also like to use native blocking recv_io and accept calls for round-robin load distribution and accessing files on systems with dozens of slow rotational disks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 705b456ccb..5d27681b40 100644 --- a/thread.c +++ b/thread.c @@ -20,6 +20,12 @@ model 3: Native Thread with fine grain lock Using pthread and Ruby threads run concurrent or parallel. + model 4: M:N User:Native threads with Global VM lock + Combination of model 1 and 2 + + model 5: M:N User:Native thread with fine grain lock + Combination of model 1 and 3 + ------------------------------------------------------------------------ model 2: -- cgit v1.2.3