Re: [mico-devel] No time parameter on ORB::perform_work()?

2006-09-02 Thread Karel Gardas
Donald, On Thu, 31 Aug 2006, Donald A. Dade wrote: Hello Sorin, Thanks for your reply. I intended the question as a MICO related one. I'm aware of all the systems programming techniques, at least the POSIX ones, don't really feel good about any of them because they are all hacks by definitio

Re: [mico-devel] No time parameter on ORB::perform_work()?

2006-08-31 Thread Donald A. Dade
Hello Sorin, Thanks for your reply. I intended the question as a MICO related one. I'm aware of all the systems programming techniques, at least the POSIX ones, don't really feel good about any of them because they are all hacks by definition, and was really asking if I was missing something made

Re: [mico-devel] No time parameter on ORB::perform_work()?

2006-08-30 Thread Sorin Mustaca
Hi, I think that your question is not related so much to MICO, but with Multithread programming in general. In a MT environment you need to yield a thread, meaning, to allow the OS scheduler to switch to another thread (or not to use CPU time). There are many methods to do this. Sleep(1) is not

[mico-devel] No time parameter on ORB::perform_work()?

2006-08-28 Thread Donald A. Dade
Hello, I've like some advice if anyone is willing: In my server, I'm calling ORB::work_pending() and ORB::perform_work() instead of ORB::run() so that my server can periodically make some outgoing CORBA calls without having to use threads. I wanted to do something like this: while(true) {