# New Ticket Created by Graciliano M. P. # Please include the string: [perl #22922] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22922 >
There is some plan of how threading will work on Parrot?
Yes. (Though there's some disagreement to the solidity and sanity of the plan :)
Since Parrot use registers, like an CPU, how will work the register between the different threads?
Each thread is essentially a separate CPU in a loosely-coupled SMP system, so each thread has separate registers.
Will be a real threading sytem, made by the OS? Or an threading system inside the VM?
A real system.
How to share data, and objetcs?
How? Well... That's somewhat up in the air.
And how about objets linkeds with native objetcs (C++), can we share?
Best make sure the wrapper class implements the required level of synchronization. That's going to be left to the folks writing the wrappers, as it's not something that can be done automatically.
How about share a class, and have only the main program with differences?
Not sure what you're getting at here, sorry.
Beatiful things can be done, specially a fast threading system.
Yep. I'm rather fond of erlang for that sort of thing. I'm not sure that we're going to go that way, since our needs are somewhat different.
I think that a good way is to make an internal threading system inside the VM, like an OS make in our machines, and we can be able to share native functions/objetcs with that.
Properly implementing our own threading system is a swamp worse than portable async I/O. It just isn't worth it, and since most of the platforms we want to run on already have a working POSIX-equivalent thread system in place (OK, the Gameboy Advance doesn't, but...) it'd be wasted work. It'd be worth it for those places that don't have threads already, but that's mostly in the embedded space and it'd be easier to weld that in underneath Parrot as it is.
I think that put threading in the TODO list from the beggining is important,
It's been there from the beginning. :) -- Dan
--------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk