![]() | ||
| Home | SwiftX Archive | SwiftForth Archive | |

Hi Ron,
I have followed your advise and simplified/restructured the tasks and I am
using a slightly modified version of SCIx-RQ in uData as used in SCIxTerm.f
which is working fine.
Thanks for the advise!
John Ulyate
-----Original Message-----
From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf Of
Ron Oliver
Sent: 17 July 2006 22:47
To: swiftx_at_forth.com
Subject: [swiftx] Re: Inter-task Message Queue
John Ulyate wrote:
> Has anybody done work on an inter-task message queue?
>
> I have two terminal tasks and several background tasks running and I need
to
> pass information between them.
>
> Any help will be appreciated.
Can you provide a little more information? When there's a lot of
intertask communication, it's often the case that a little
reorganization of the tasks's duties will simplify things dramatically.
If message queues are really what you need, then any simple queue
mechanism should do the job. Since SwiftX tasks use shared memory, an
"intertask" queue is no different than any other queue. Also, since
SwiftX uses a cooperative multitasker, you probably don't even need a
facility variable to manage access to your message queue(s). As long
as you don't call any words that PAUSE or STOP while manipulating the
queue, and the queue isn't being manipulated by an interrupt, you
don't need to do anything special for multiple tasks to manipulate the
queue.
-- Ron Oliver Consulting Engineer FORTH, Inc. www.forth.com ---------------------------------------------------------------------- swiftx_at_forth.com The SwiftX programming discussion email list To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com For list command help, send subject "help" to swiftx-request_at_forth.com Message archives are located at http://www.forth.com/archive/swiftx ---------------------------------------------------------------------- This list is a forum for SwiftX users. For product support and bug reports, please send email to support_at_forth.com ---------------------------------------------------------------------- ---------------------------------------------------------------------- swiftx_at_forth.com The SwiftX programming discussion email list To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com For list command help, send subject "help" to swiftx-request_at_forth.com Message archives are located at http://www.forth.com/archive/swiftx ---------------------------------------------------------------------- This list is a forum for SwiftX users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Tue Jul 18 2006 - 09:19:16 PDT
This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:51 PST