bfish has asked for the wisdom of the Perl Monks concerning the following question:
You people are great and solved my first problem in a hurry--THANKS!
Now I'd like to see if there is a way for one of my processes to interrupt another. I envision sending a signal from one server-type process to a client-type process. The client would abort current processing upon receiving the signal, read a bunch of stuff from a Win32::Pipe, and then start its processing again.
Since I'm running under Windows, I'm very leary of using SIG or anything that expects a UNIX OS. If I shouldn't be, just let me know, but my investigation into named pipes (solved with Win32::Pipe) suggests that I'm properly concerned.
The biggest trick seems to be that I don't want the client to be reentrant. I want to interrupt the client and never return to the position at which the client was running (figuratively issue a GOTO type of command).
Here is the application (basically)...my primary process is managing a fantasy football draft, my secondary process searches for a trade that might be beneficial to me. Since there are many trade possibilities, I want to investigate as many as it can. Unfortunately, the whole structure changes each time someone makes a draft pick. Thus I want to interrupt the secondary process wheneve a pick is made, send information about the pick selected over, and then tell the secondary process to start looking for a new potential trade. Fun, huh?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending and Catching Signals/Interrupts
by waswas-fng (Curate) on Aug 07, 2003 at 18:55 UTC | |
by bfish (Novice) on Aug 07, 2003 at 19:10 UTC | |
by waswas-fng (Curate) on Aug 07, 2003 at 19:36 UTC | |
by bfish (Novice) on Aug 07, 2003 at 20:40 UTC |