Sujet : Re: PAD and preemptive multi-tasking
De : ruvim.pinka (at) *nospam* gmail.com (Ruvim)
Groupes : comp.lang.forthDate : 28. Jan 2025, 23:50:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vnbmvp$20ov7$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 2024-12-20 14:10, Anton Ertl wrote:
Bernd Paysan have been wondering what to do about PAD in the presence
of preemptive multitasking (but not multi-user) as implemented in
Gforth.
We see two possible scenarios:
If PAD is used only directly by the user for interactive work, only
one PAD is needed.
OTOH, if PAD is used as temporary storage in words that may be called
by any task, PAD needs to be part of the per-task (aka USER) data.
[...]
In any case, the question is how PAD is used by current programs that
might be run on Gforth.
>
I don't use PAD in multitasking/multithreaded applications, or even in single-tasking applications. But only in interactive work, or for some tests in the file loading time.
In SP-Forth/4, PAD is located in the user-area (per-task). But I don't know examples of using it in different thread in parallel.
-- Ruvim