[net.unix-wizards] how fast is signal handling

fredm@tekgvs.UUCP (Fred Moore) (08/28/84)

----------------------------
I'm a novice posting to a wizards news group so please have patience with me.

I've been trying to setup communication between processes by having
one catch a particular signal.  Unfortunately this seems to take half of 
forever.  Does it strike anyone out there is upwards of 3/10 of a 
second between the time one process sends the signal and the second process 
grabs the signal and begins handling it?

The 3/10 of a second is real time, but it was measured with the load averages
on our machine  very, very low, other times I obtained ranged up to 3/4 of 
a second during busier times.

Any thoughts wizards?  Please reply via mail.

Fred Moore (tektronix!tekgvs!fredm)

dave@uwvax.ARPA (08/29/84)

You left out some important info, like what version of UN*X you're
running and on what (I'd expect slowness on a PC).  Anyway, I tried
it out.

I got the time (from gettimeofday(), sent the signal, printed a message
with the time, and exited.
The receiver was busywaiting.  When it got the signal, it
trapped, got the time, printed it, and exited.

The load was app. 0.5.  Anyway, The signal was received in app. 2/100 sec.

I tried this on a VAX 11/780 running 4.2BSD.

-- 
Dave Cohrs @ wisconsin
...!{allegra,heurikon,ihnp4,seismo,ucbvax,uwm-evax}!uwvax!dave
dave@wisc-rsch.arpa