Is Message passing good approach for multi-threaded applications?
- From: Behzad <Sedighzadeh@xxxxxxxxx>
- Date: Mon, 21 Jul 2008 05:55:06 -0700 (PDT)
hi all,
I am currently developing an embedded protocol converter.In this
application there are 16 serial ports and 2 Ethernet ports.There are
16 threads for each serial port and also there is a network server
which accepts connections from LAN. so there is a thread per each
connection.There are also some threads for other tasks like
application management, time synchronization etc. As a solution to the
problem of communication between these threads i choose message
passing.There are 2 queues.One for requests and one for responses. LAN
threads put messages into request queue and other threads put replies
into response queue. Because our system has a CPU with 500MHz speed
(ARM9) i was concern if this approach can satisfy our
requirement.Each request and subsequent response should take only 200
ms. Does this architecture ( message passing as a communication bus )
good or there are some other approaches? Any guide,URL, book,
experience would appreciated.
Thanks in advance
Behzad
.
- Follow-Ups:
- Prev by Date: Re: Physics failure in a game?
- Next by Date: cheap air jordan 22 PayPal
- Previous by thread: Re: programming
- Next by thread: Re: Is Message passing good approach for multi-threaded applications?
- Index(es):
Relevant Pages
|