Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
17193 posts
|
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
9001 posts
|
On Tue, Apr 7, 2009 at 6:03 PM, Stéphane Ducasse <[hidden email]> wrote: Hi all 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
_______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
17193 posts
|
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 ... [show rest of quote] _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
5207 posts
|
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 |
Free forum by Nabble | Edit this page |