Alhazred
Jul 31st 2004, 7:02 am
I have two processes (opened in a console window eachone) which cooperate, one of these processes is in waiting status, the other accept an input from a user, then send the input to the first process which elaborate. After these operations the processes exchange the roles between them, the second waits the datas from the second, which accept an input from a user and so on.
Here's the problem, if I write something in the console of the waiting process, it accepts that as input when I should insert the real input.
I need to know this, how can I do to discard the input inserted by a user to a process when it's waiting for an input from the other process and not from the user?
Sorry for my bad explanation, but I'm not so good with english :p
Here's the problem, if I write something in the console of the waiting process, it accepts that as input when I should insert the real input.
I need to know this, how can I do to discard the input inserted by a user to a process when it's waiting for an input from the other process and not from the user?
Sorry for my bad explanation, but I'm not so good with english :p