is the compiler threadsafe?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

is the compiler threadsafe?

Stéphane Ducasse
Hi all

I have a simple question.
Is the compiler thread-safe?

Stef

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: is the compiler threadsafe?

Mariano Martinez Peck

On Tue, Apr 7, 2009 at 6:03 PM, Stéphane Ducasse <[hidden email]> 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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: is the compiler threadsafe?

Stéphane Ducasse
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 <[hidden email]
> > 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
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: is the compiler threadsafe?

Lukas Renggli
In reply to this post by Stéphane Ducasse
> 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

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project