From owner-freebsd-hackers Sun Apr 7 12:47:53 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA27466 for hackers-outgoing; Sun, 7 Apr 1996 12:47:53 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA27461 for ; Sun, 7 Apr 1996 12:47:51 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id MAA00383; Sun, 7 Apr 1996 12:39:52 -0700 From: Terry Lambert Message-Id: <199604071939.MAA00383@phaeton.artisoft.com> Subject: Re: The F_SETOWN problem.. To: louie@TransSys.COM (Louis A. Mamakos) Date: Sun, 7 Apr 1996 12:39:52 -0700 (MST) Cc: msmith@atrad.adelaide.edu.au, roell@blah.a.isar.de, terry@lambert.org, hackers@FreeBSD.ORG, jkh@time.cdrom.com, roell@xinside.com In-Reply-To: <199604071359.JAA01073@whizzo.transsys.com> from "Louis A. Mamakos" at Apr 7, 96 09:59:54 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > While not an X server application, you'll note that xntpd uses SIGIO > so that it might read and, most importanty, timestamp traffic arriving > on the network. This is critical to making NTP accurately synchronize > the clock. By using SIGIO, you can not have to worry nearly so much > about long-running sections of code and not being able to check for > pending input for a "long" time. The model of signal as 'interrupt' > works extremely well for this sort of appliation. Of course, this all > works Just Fine with sockets.. Signals are not events. What is wrong with select() that makes it unsuitable for your use? It's not like when the vent occurs you will interrupt or setal process quantum if you are not the running process. You will only set the flag saying you are ready to run as a result of a wakeup on the process sleep address, and *still* wait for then quantum on the currently running process to expire. Then you have to compete with all other processes on the system which *also* has their resources come free. So it's not like you get increased response time or anything. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.