Hi all,
I trying to spawn a process from WAComponent which should run quite long time.
I do it like this:
process := [dataBank do: [:e| self processData: e.]] newProcess. process resume.
But i found my squeak process eating 98% of CPU and morphic non responding after a while.
Have i missed something ?
Thanks. -Dmitry.
Am 23.09.2005 um 13:31 schrieb Dmitry Dorofeev:
Hi all,
I trying to spawn a process from WAComponent which should run quite long time.
I do it like this:
process := [dataBank do: [:e| self processData: e.]] newProcess. process resume.
But i found my squeak process eating 98% of CPU and morphic non responding after a while.
Have i missed something ?
You need to lower the priority of that bg process. Also, newProcess/ resume is a lower level protocol, rather use fork (which does the resume for you):
process := [... my process ... ] forkAt: Processor userBackgroundPriority.
- Bert -
seaside@lists.squeakfoundation.org