[Seaside] How to spawn a process ?
Bert Freudenberg
bert at impara.de
Fri Sep 23 13:59:45 CEST 2005
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 -
More information about the Seaside
mailing list