B
brad
Hi,
I am writing some test scripts where I want to fork() and in the child
I want to continually monitor one condition(if a chip resets) and if
that condition is met, I want to be able to send a message to the
parent and stop him and exit. Further more, If the child process
never gets satisfied, and the parent finishes its job, I want to be
able to stop the child process from within the parent and then exit
the parent thread. There must be a way to talk among threads, but I
have been searching with little luck. How can I send messages among
threads or share variables among them? Does anyone have any examples
of such a thing? Thanks
I am writing some test scripts where I want to fork() and in the child
I want to continually monitor one condition(if a chip resets) and if
that condition is met, I want to be able to send a message to the
parent and stop him and exit. Further more, If the child process
never gets satisfied, and the parent finishes its job, I want to be
able to stop the child process from within the parent and then exit
the parent thread. There must be a way to talk among threads, but I
have been searching with little luck. How can I send messages among
threads or share variables among them? Does anyone have any examples
of such a thing? Thanks