Issues about server multi-threading on L4Re

李 鼎基 <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <SG2PR06MB24892ACA29F33B3CB6670BFFCB120@SG2PR06MB2489.apcprd06.prod.outlook.com>
Hi,

I’m trying to implement some multi-threading IPC benchmarks on L4Re.
Following the “shared_ds” demo, firstly, I create 8 threads to send IPC on client and receive them all on server’s main thread.
The server loops, waits for the requests and handles them in the “dispatch” function. This single-thread server works well.

Then I want to create 8 threads in server (so that it can serve the client thread-to-thread).
I wrap the “server.loop();” in a “thread_fn” and use “pthread_create” to create more threads, however, the server will get stuck.
There are some printings after entering thread_fn so that I can make sure new threads are created and executed except the server.loop part.

In order to serve different requests concurrently, is there any way to create a multi-threading server?

--
Thanks

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.