help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Exploring networking, threading


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Exploring networking, threading
Date: Tue, 2 Sep 2003 12:59:26 +0200

> NetThread>>#newProcess
>     ^([ self run ] forkAt: priority) name: (self class name, ' Process')

Applied, thanks.

> But I'm curious: why does the server response some times when I'm
> evaluating
> "[ true ] whileTrue: [ [] fork ]!"?

Because "Processor yield" gives lower priorities a chance to run if the
highest-priority process is the sole in its class and yields; and so does
the round-robin that is enabled by --enable-preemption.

> - Is the following comment outdated by "--enable-preemption"?

No, instead it only applies to --enable-preemption ("by default the system
is compiled with preemptive multitasking disabled").

> - How stable is "--enable-preemption"?

It should be, but of course it is more prone to exhibit bugs and race
conditions.

> - I noticed some crashes with "--enable-jit" and/ or
> "--enable-preemption" (especially with TCP-Package - sometimes the vm
> crashes, sometimes not) - would it help to send backtraces?

Yes.

Paolo






reply via email to

[Prev in Thread] Current Thread [Next in Thread]