From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 23 03:20:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4874B16A4CE for ; Fri, 23 Jul 2004 03:20:59 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E80043D46 for ; Fri, 23 Jul 2004 03:20:58 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 8816B653FF; Fri, 23 Jul 2004 04:20:55 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 66161-02; Fri, 23 Jul 2004 04:20:54 +0100 (BST) Received: from empiric.dek.spc.org (82-147-17-88.dsl.uk.rapidplay.com [82.147.17.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 047A6653F8; Fri, 23 Jul 2004 04:20:54 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id EC2F76181; Fri, 23 Jul 2004 04:20:52 +0100 (BST) Date: Fri, 23 Jul 2004 04:20:52 +0100 From: Bruce M Simpson To: Dan Nelson Message-ID: <20040723032052.GA32366@empiric.dek.spc.org> Mail-Followup-To: Dan Nelson , pradeep reddy punnam , freebsd-hackers@freebsd.org, Joseph M Link References: <410069F0.5040604@joelink.net> <20040723022324.55446.qmail@web53409.mail.yahoo.com> <20040723025600.GA3234@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040723025600.GA3234@dan.emsphone.com> cc: freebsd-hackers@freebsd.org cc: Joseph M Link cc: pradeep reddy punnam Subject: Re: regarding timeout/untimeout kernel functions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2004 03:20:59 -0000 On Thu, Jul 22, 2004 at 09:56:00PM -0500, Dan Nelson wrote: > You could also use the kqueue/kevent functions to queue up an arbitrary > number of timer events in a single process. I wrote a small routing daemon which uses kqueue/kevent to fire a period timer on a quantum which in turn calls into a timer list module I wrote, which can either use the kevent quantum, or multiplex on a single itimer. It's pretty basic and probably not foolproof, but it seems to work well. BMS