native threads

goran.krampe at bluefish.se goran.krampe at bluefish.se
Fri Apr 15 06:49:53 UTC 2005


"David T. Lewis" <lewis at mail.msen.com> wrote:
> On Thu, Apr 14, 2005 at 08:40:45PM +0100, Darren Hobbs wrote:
> > I think the next release of Visual Works will have the cabability for
> > two images to share the same perm. space, which should reduce the
> > incremental cost of starting multiple VM's.  Would it be possible to
> > do something similar in Squeak?
> > 
> > On 4/14/05, Cees de Groot <cg at cdegroot.com> wrote:
> > > As I said before, VW has native MT support, but I never had the guts to
> > > switch it on. Just ran two images...
> 
> I don't know what VisualWorks is doing WRT sharing perm space, but for
> what it's worth Squeak can be amazingly fast at starting images in
> some circumstances. Try "UnixProcess forkHeadlessSqueakAndDo: [something]"
> to see how quick it is. This is platform dependent and hence not in
> line with Squeak goals (also requires OSProcess from SqueakMap), but
> it shows what is possible.
> 
> This shares all of the object memory initially, and as time goes on
> the two object memories start using their own memory. It does not

Is that because Linux shares pages somehow and does copy-on-write or
something? Just curious.

I read your "save-image-in-another-process-trick"-posting (possibly on
the seaside list, don't remember) and it is quite neat. :)

regards, Göran



More information about the Squeak-dev mailing list