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

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 ----------------------------------------------------------------------Received on Mon Jul 17 2006 - 13:46:59 PDT
This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:51 PST