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?
In reply to Re^10: Problem in Inter Process Communication
by BrowserUk
in thread Problem in Inter Process Communication
by libvenus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |