[omniORB] Threads management for omniORBpy

Yura Smolsky info at altervision.biz
Mon Feb 14 16:27:27 GMT 2005


Hello, Duncan.


DG> Ah. I'm afraid you won't be able to do that directly. omniORB requires
DG> that its threads are started by itself. You won't be able to use Java
DG> threads. 

DG> What you'll have to do is yourself create a PyLucene thread for each
DG> omniORB worker thread (you can use the worker thread hook to do that),
DG> then for each call that needs to talk to Lucene, trigger the PyLucene
DG> thread to do it for you. It's pretty easy to do that with a Queue object
DG> or two.

Well, I have realized something similar your idea. For every
WorkerThread I do create Lucene thread and two Queue() objects.
Lucene thread gets items from in-queue and return it to out-queue.
I hope Queue class is fast one :)

Well, everything works for now..

Thank you a lot!

omniORBpy ROCKS! :)

Yura Smolsky.




More information about the omniORB-list mailing list