Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.forth > #134101
| Newsgroups | comp.lang.forth |
|---|---|
| References | <871pq0uppw.fsf@nightsong.com> |
| From | albert@spenarnc.xs4all.nl |
| Subject | Re: multitasking vs multiple interpreters |
| Message-ID | <nnd$36fa8656$3dede2e2@f9f97ec4bf262c4d> (permalink) |
| Organization | KPN B.V. |
| Date | 2025-07-28 23:09 +0200 |
In article <871pq0uppw.fsf@nightsong.com>, Paul Rubin <no.email@nospam.invalid> wrote: >Question is how to multitask on a small embedded target. One way is the >traditional cooperative multitasker with a shared dictionary plus task >variables. > >Another way is time slicing multiple interpreters, each with its own >data dictionary (all variables are task variables). There would be a >shared read-only dictionary for code and constants, and a mailbox scheme >for IPC. > >This question is more about shared vs non-shared than cooperative vs >preemptive. The latter would be Erlang-style preemptive, i.e. avoiding >most locking hazards by using mailboxes instead of memory sharing. > >Does anyone do it this way? Is the overhead substantial? Interpreting a musical score with multiple instruments and several polyphonic parts: If I look at the manx program, I have 2 levels of multitasking. The low level for the instruments (microseconds precision and busy waiting) and the high level , interpreting a measure of a part of a musical score than the same measure of other parts. Once the low level queues are full, and the next event is -- say -- 15 mS away, I give time back to the OS (linux) by a wait, such that the process can be run in the background and the terminal is still responsive. Without waiting this can be run on a small system, memory may restrict the size of the musical score. This suggests that a Forther would design the multitasking fit for the application, The other situation is that you take advantage of multiple cores to speed up the calculation. There you use the fork system call. Groetjes Albert -- The Chinese government is satisfied with its military superiority over USA. The next 5 year plan has as primary goal to advance life expectancy over 80 years, like Western Europe.
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar
multitasking vs multiple interpreters Paul Rubin <no.email@nospam.invalid> - 2025-07-28 11:36 -0700
Re: multitasking vs multiple interpreters albert@spenarnc.xs4all.nl - 2025-07-28 23:09 +0200
Re: multitasking vs multiple interpreters Paul Rubin <no.email@nospam.invalid> - 2025-07-28 20:32 -0700
Re: multitasking vs multiple interpreters minforth <minforth@gmx.net> - 2025-07-29 06:03 +0200
Re: multitasking vs multiple interpreters Ivan Shmakov <ivan@siamics.netREMOVE.invalid> - 2025-08-09 14:37 +0000
Re: multitasking vs multiple interpreters anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2025-07-29 07:49 +0000
Re: multitasking vs multiple interpreters albert@spenarnc.xs4all.nl - 2025-07-29 11:06 +0200
Re: multitasking vs multiple interpreters Paul Rubin <no.email@nospam.invalid> - 2025-07-29 15:06 -0700
Re: multitasking vs multiple interpreters Buzz McCool <buzz_mccool@yahoo.com> - 2025-08-11 10:12 -0700
Re: multitasking vs multiple interpreters anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2025-08-11 17:49 +0000
Re: multitasking vs multiple interpreters albert@spenarnc.xs4all.nl - 2025-08-12 13:14 +0200
Re: multitasking vs multiple interpreters Paul Rubin <no.email@nospam.invalid> - 2025-08-12 09:45 -0700
Re: multitasking vs multiple interpreters albert@spenarnc.xs4all.nl - 2025-08-13 11:23 +0200
Re: multitasking vs multiple interpreters Paul Rubin <no.email@nospam.invalid> - 2025-08-13 09:12 -0700
Re: multitasking vs multiple interpreters minforth <minforth@gmx.net> - 2025-08-13 13:55 +0200
Re: multitasking vs multiple interpreters Stephen Pelc <stephen@vfxforth.com> - 2025-08-14 09:43 +0000
csiph-web