Re: Thread Question and Suggestion -- Matt

2004-01-04 Thread Jeff Clites
On Jan 4, 2004, at 1:58 PM, Matt Fowles wrote: Dave Mitchell wrote: Why on earth would they be all one kernel-level thread? Truth to tell I got the idea from Ruby. As I said it make syncronization easier, because the interpreter can dictate when threads context switch, allowing them to only

Re: Thread Question and Suggestion -- Matt

2004-01-04 Thread Matt Fowles
Dave Mitchell wrote: On Sat, Jan 03, 2004 at 08:24:06PM -0500, Matt Fowles wrote: All~ I have a naive question: Why must each thread have its own interpreter? I understand that this suggestion will likely be disregarded because of the answer to the above question. But here goes anyway...

Re: Thread Question and Suggestion -- Matt

2004-01-04 Thread Leopold Toetsch
Matt Fowles <[EMAIL PROTECTED]> wrote: > Why not have the threads that share everything share interpreters. We > can have these threads be within the a single interpreter thus > eliminating the need for complicated GC locking and resource sharing > complexity. Because all of these threads will b

Re: Thread Question and Suggestion -- Matt

2004-01-04 Thread Leopold Toetsch
Jeff Clites <[EMAIL PROTECTED]> wrote: > On Jan 3, 2004, at 5:24 PM, Matt Fowles wrote: >> Why must each thread have its own interpreter? > The short answer is that the bulk of the state of the virtual machine > (including, and most importantly, its registers and register stacks) > needs to be pe

Re: Thread Question and Suggestion -- Matt

2004-01-04 Thread Dave Mitchell
On Sat, Jan 03, 2004 at 08:24:06PM -0500, Matt Fowles wrote: > All~ > > I have a naive question: > > Why must each thread have its own interpreter? > > > I understand that this suggestion will likely be disregarded because of > the answer to the above question. But here goes anyway... > > Wh

Re: Thread Question and Suggestion -- Matt

2004-01-04 Thread Harry Jackson
Matt Fowles wrote: I understand if this suggestion is dismissed for violating the rules, but I would like an answer to the question simply because I do not know the answer. The most admiral reason for asking a question and I doubt it will be dismissed. H

Re: Thread Question and Suggestion -- Matt

2004-01-03 Thread Jeff Clites
On Jan 3, 2004, at 5:24 PM, Matt Fowles wrote: All~ I have a naive question: Why must each thread have its own interpreter? The short answer is that the bulk of the state of the virtual machine (including, and most importantly, its registers and register stacks) needs to be per-thread, since i

Re: Thread Question and Suggestion -- Matt

2004-01-03 Thread chromatic
On Sat, 2004-01-03 at 17:24, Matt Fowles wrote: > I have a naive question: > > Why must each thread have its own interpreter? ~handwavy, high-level answer~ For the same reason each thread in C, for example, needs its own stack pointer. Since Parrot's a register machine, each thread needs its o