No too dificult. Do you want to use Perl threads or forks? See THREAD SIGNALLING for the former; Signals in perlipc and kill for the latter.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
| [reply] |
| [reply] |
main function waits for a signal to get emitted ,and then it calls the signal callback
some thread later emits the signal
Is that possible in Perl??
| [reply] |
I don't use threading very often, so probably not the right person to ask. As well as the links given above, this tutorial might be helpful.
Best of luck!
| [reply] |