[Pharo-project] is the compiler threadsafe?
On Tue, Apr 7, 2009 at 6:03 PM, Stéphane Ducasse <stephane.ducasse@inria.fr>wrote:
Hi all
I have a simple question. Is the compiler thread-safe?
This is very confusing for me. In one hand, as I understood, standard SqueakVM doesn't have multiple OS threads. The whole VM is run in a single OS thread. This is what it is know as "green thread" ? On the other hand, hay can use fork inside squeak. What this actually does? like internal threads ? How are they known ? forks ? internal threads? or just threads? Thanks to help me understand this (I know this thread should be in squeak-vm mailing list but I am event not subscribed). Mariano
Stef
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
this has nothing to do with the VM. Read Smalltalk by example to get a bit more information about conccurency on squeak. I need to know if this is possible to launch a method compilation each a morphic method is executed and since morphic have several thread if this approach makes sense. This would explained why I got some problem dynamically creating dead code finder and other meta program. stef On Apr 7, 2009, at 9:10 PM, Mariano Martinez Peck wrote:
On Tue, Apr 7, 2009 at 6:03 PM, Stéphane Ducasse <stephane.ducasse@inria.fr
wrote: Hi all
I have a simple question. Is the compiler thread-safe?
This is very confusing for me.
In one hand, as I understood, standard SqueakVM doesn't have multiple OS threads. The whole VM is run in a single OS thread. This is what it is know as "green thread" ?
On the other hand, hay can use fork inside squeak. What this actually does? like internal threads ? How are they known ? forks ? internal threads? or just threads?
Thanks to help me understand this (I know this thread should be in squeak-vm mailing list but I am event not subscribed).
Mariano
Stef
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I have a simple question. Is the compiler thread-safe?
Probably not, although the compile itself probably is. Certainly reading and writing the changes file is not thread-save. Also adding methods to classes is not thread-safe. Lukas -- Lukas Renggli http://www.lukas-renggli.ch
participants (3)
-
Lukas Renggli -
Mariano Martinez Peck -
Stéphane Ducasse