Hi Everyone,

I have a shared library which is used by multiple processes.
In this library I create a thread when this module is started and listen on 
a local socket.
Each process provides a callback to this module and upon receiving the 
response it informs the corresponding process.

The problem is everytime a process starts this module a new thread and 
hence a new server is created.
Though this thread is not adding any overhead (it is waiting most of the 
time) I dont think this is the better way to do it, also it cannot be 
reliable.
Is it possible to have a single thread (single server) shared among these 
three processes?
If yes, when a response is received how it can access the corresponding 
process address space to invoke the callback?
If no, are there any better ways to restructure this?

-br
Arun


-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to