It seems context is always defined as a variable.
Would there be a problem if it was defined as a USER so
multiple tasks could have their own search context at the same time?
Jos Ven schrieb am Freitag, 5. Mai 2023 um 10:17:54 UTC+2:That is the problem.
It seems context is always defined as a variable.To hold a task-specific search-order you need a task-specific array/list. Whether you call this array/list or a pointer to it CONTEXT is implementation defined.
Would there be a problem if it was defined as a USER so
multiple tasks could have their own search context at the same time?
CONTEXT is implementation defined.
It seems context is always defined as a variable.
Would there be a problem if it was defined as a USER so
multiple tasks could have their own search context at the same time?
Jos
It seems context is always defined as a variable.
Would there be a problem if it was defined as a USER so
multiple tasks could have their own search context at the same time?
Jos
On Friday, May 5, 2023 at 4:17:54 AM UTC-4, Jos Ven wrote:
It seems context is always defined as a variable.FigForth defined CONTEXT as a user variable.
Would there be a problem if it was defined as a USER so
multiple tasks could have their own search context at the same time?
Jos
People seemed to forget about multi-tasking and multi-user features
in Forth as time went on.
Once you have an O/S underneath I guess it matters less.
AFAIK Forth never had a decent interrupt handler or timer. That was
the main shortcoming, while seemingly savvy people argued enthusiastically about pros and cons of cooperative round-robin scheduling. Water under
the bridge...
On 5/5/23 11:25 AM, minforth wrote:
AFAIK Forth never had a decent interrupt handler or timer. That was
the main shortcoming, while seemingly savvy people argued enthusiastically >> about pros and cons of cooperative round-robin scheduling. Water under
the bridge...
I found adding interrupt handling to an ARM version of eForth pretty
easy. It helps that so much context is saved to the stack before the ISR >begins.
--
http://davesrocketworks.com
David Schultz
It seems context is always defined as a variable.
Would there be a problem if it was defined as a USER so
multiple tasks could have their own search context at the same time?
Under Gforth, Win32forth context is defined as a variable.
There a variable is a kind of global within Forth then
all tasks get the same context.
Jos Ven <jo...> writes:
Under Gforth, Win32forth context is defined as a variable.Not in the Gforth versions I have looked at (0.7 and the current
development version).
There a variable is a kind of global within Forth thenIn Gforth we have discussed whether we want to support compilation
all tasks get the same context.
(and, more generally, text interpretation) in multiple tasks, and
decided against it.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net
Jos Ven <jo..> writes:
Under Gforth, Win32forth context is defined as a variable.Not in the Gforth versions I have looked at (0.7 and the current
development version).
There a variable is a kind of global within Forth thenIn Gforth we have discussed whether we want to support compilation
all tasks get the same context.
(and, more generally, text interpretation) in multiple tasks, and
decided against it.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2022: https://euro.theforth.net
Under Gforth, Win32forth context is defined as a variable.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 475 |
Nodes: | 16 (2 / 14) |
Uptime: | 18:33:59 |
Calls: | 9,487 |
Calls today: | 6 |
Files: | 13,617 |
Messages: | 6,121,092 |