[squeak-dev] Re: [ANN] A new scheduler + VM changes alpha-release
Igor Stasenko
siguctua at gmail.com
Thu Apr 30 14:15:48 UTC 2009
A quick comparion for Delays:
delay := Delay forMilliseconds: 1.
bag := Bag new.
1000 timesRepeat:[bag add: [delay wait] timeToRun].
bag sortedCounts
on my 4-core box it yields:
- with AdvancedProcessorScheduler install
a SortedCollection(951->2 49->1)
- with Processor fallbackToOldScheduler
a SortedCollection(953->2 47->1)
- with old VM
a SortedCollection(952->2 47->1 1->3)
not much overhead huh? :)
But Delay's code now can be refactored, which will simplify it
seriously, because it could run in interrupt process and take no care
for concurrency issues.
2009/4/30 Igor Stasenko <siguctua at gmail.com>:
> i added a new changeset in mantis which deals with callbackEnter: code.
> Unfortunately, a callback handling , to work correctly needs an
> image-side changes as well.
>
> P.S. Having fun to watch how scheduler handling signals, by inspecting
> Process and selecting its 'signals' ivar :)
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|