in reply to Re^9: Problem in Inter Process Communication
in thread Problem in Inter Process Communication

is there some problem in the below code

Yes. You cannot have two different types of worker feeding off the same queue. How will each know whether what it pulled off the queue is for it or for the other type of worker?

You would at least need to use two queues, which isn't a problem and can be an effective way of decoupling two or more types of processing. But you still need to explain why you think this is a good idea? What are you hoping to gain from doing so?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^10: Problem in Inter Process Communication