[okl4-developer] cell to threads communication

Hannes Payer hannes.payer at cs.uni-salzburg.at
Fri Oct 2 03:01:00 EST 2009


Hi,

how can multiple threads running in one cell communicate with another cell?
I looked at the available OKL4 documentation and played around with the API,
but I am not sure how to get this done. 

The following program works for me:
There are 2 cells running in the system. One is a server cell performing a
calculation based on client input and returning the result to the client.
The server cell waits for a notification (okl4_notify_wait) from the client
cell. Whenever the client cell wants to communicate with the server it
writes data to a known shared memory location and sends the server cell a
notification (okl4_notify_send) and waits for a notification from the server
for the result. The server cell looks-up the input in shared memory,
computes the result, writes the result to shared memory and sends the client
a notification. This example is very similar to the decrypt demo of the OKL4
examples and on a cell-to-cell communication basis this system works. 

My question: 
Can I implement this example also with multiple threads running in the
client cell where each single thread communicates with the server cell? How
does the server cell get the capability to send a given thread from the
client cell a notification? Do I have to stick to cell-to-cell communication
and multiplex the messages from the server cell on the client cell side?

I hope my problem description is precise enough. Thank you very much for
your help.

-H
-- 
View this message in context: http://n2.nabble.com/cell-to-threads-communication-tp3750541p3750541.html
Sent from the OKL4 Community Forum mailing list archive at Nabble.com.



More information about the Developer mailing list