[#290] — Florian Frank <flori@...>
Hi all,
5 messages
2002/08/03
[#297] GC longjmp macros — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/05
[#308] Q: OSSL in std. distr? — Michal Rokos <m.rokos@...>
Hi,
4 messages
2002/08/08
[#326] Implications of a #force_free method in Object? — Matthew Bloch <mattbee@...>
Hello;
8 messages
2002/08/19
[#328] Int vs Long — Michal Rokos <m.rokos@...>
Hi,
7 messages
2002/08/21
[#337] Int vs Long (2nd part) — Michal Rokos <m.rokos@...>
Hi,
7 messages
2002/08/22
[#340] Int vs Long #3 — Michal Rokos <m.rokos@...>
Hi,
9 messages
2002/08/22
[#344] Re: [Cleanup] Int vs Long #3
— nobu.nokada@...
2002/08/22
Hi,
[#348] Re: [Cleanup] Int vs Long #3
— Michal Rokos <m.rokos@...>
2002/08/23
Hello,
[#353] File (struct stat handling) — Michal Rokos <m.rokos@...>
Hello,
6 messages
2002/08/23
[#358] node.h for eval.c — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/23
[#372] rb_class_path — Michal Rokos <m.rokos@...>
Hello,
7 messages
2002/08/27
[#382] Port match to new dup, clone framework — Michal Rokos <m.rokos@...>
Hi,
5 messages
2002/08/28
[#393] in dln.c — Michal Rokos <m.rokos@...>
Hi,
14 messages
2002/08/30
[#398] Re: [MemLeak] in dln.c
— nobu.nokada@...
2002/08/31
Hi,
[#403] Re: [MemLeak] in dln.c
— Michal Rokos <m.rokos@...>
2002/09/02
Hello,
Re: [Cleanup?] Int vs Long
From:
Michal Rokos <m.rokos@...>
Date:
2002-08-22 10:06:15 UTC
List:
ruby-core #335
Hi, On Wed, Aug 21, 2002 at 02:00:17PM -0400, James F. Hranicky wrote: > > How's ThreadSafeRuby coming along? > My idea was to bring real threads to Ruby (POSIX, Windows, or SW emul (as it is now)). For native threads, you definitely need some locking. The problem is what to lock. ==================================== My idea was to add RW-Lock into every ruby object (to RBasic struct). So: Every binding method should call rb_lock_wr, or rb_lock_rd. I think that we cannot use POSIX rwlock, because we need reentrant write lock for the same thread (or rewrite methods not to call each other that could be definitely a big pain) - so we have to write our own RWlock) As I calculated the space needed for this new lock, it could add about 5 pointers size to every Ruby object, that means: doubles memory needs! (Current std. Ruby object is about 5 pointers as well) I'm not sure wether it is acceptable. Also this could bring a lot of deadlocks and I'm not sure if it is suitable for eval and parsing part. ==================================== If you will have just 1 global lock, I don't see any benefit of bringing native threads in. So the project has stopped because of lack of discussion. Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-