Signals and context switches

David R. Stampf drs at bnlux1.bnl.gov
Sun Jun 16 11:06:26 AEST 1991


	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
 
	



More information about the Comp.unix.wizards mailing list