Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!m.cs.uiuc.edu!ux1.cso.uiuc.edu!news.iastate.edu!sharkey!bnlux1.bnl.gov!drs From: drs@bnlux1.bnl.gov (David R. Stampf) Newsgroups: comp.unix.wizards Subject: Signals and context switches Keywords: EDIT DELETE LINES Message-ID: <1991Jun16.010626.28257@bnlux1.bnl.gov> Date: 16 Jun 91 01:06:26 GMT Organization: Brookhaven National Laboratory, Upton, NY 11973 Lines: 22 I just wrote two short programs. program 1 sends a SIGUSR1 signal to program 2, then waits to receive a SIGUSR1 signal from program 2. It repeats this 100 times. program 2 just catches SIGUSR1 signals from program 1 and sends a SIGUSR1 signal back. What surprises me is that it takes 70 seconds to send the 100 signals back and forth! Is it possible to get better timing on this? I guess what I'd like to do is to force a context switch when I send the signal and get much better "turn" around. Any help is appreciated. < dave stampf