[Q] Has SharedQueue a very subtle bug?
Tim Rowledge
tim at sumeru.stanford.edu
Fri Apr 12 23:15:32 UTC 2002
Martin McClure wrote:
>
> At 1:24 PM +0100 4/12/02, goran.hultgren at bluefish.se wrote:
> >
> >Yes, so I gather that your answer is that it can happen, right? I was
> >wondering
> >for a while what kind of "granularity" the process scheduling uses -
> >your answer
> >implies that it is on the bytecode level. So a Process switch can happen
> >theoretically
> >between any bytecodes?
>
> I believe that's true.
yes.... and no.
The 'spec' is that process switching is permitted between any two
bytecodes but the practise for a long time now has been the process
switching occurs when :-
a) backwards branch (to catch loops)
b) real message send (ie a new context is created and control passed on)
c) long running primitive completes
tim
More information about the Squeak-dev
mailing list
|