From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 23 00:59:41 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 54C0416A4CE for ; Fri, 23 Jul 2004 00:59:41 +0000 (GMT) Received: from web53410.mail.yahoo.com (web53410.mail.yahoo.com [206.190.37.57]) by mx1.FreeBSD.org (Postfix) with SMTP id 02BF043D54 for ; Fri, 23 Jul 2004 00:59:41 +0000 (GMT) (envelope-from prady_p@yahoo.com) Message-ID: <20040723005940.18029.qmail@web53410.mail.yahoo.com> Received: from [131.123.36.10] by web53410.mail.yahoo.com via HTTP; Thu, 22 Jul 2004 17:59:40 PDT Date: Thu, 22 Jul 2004 17:59:40 -0700 (PDT) From: pradeep reddy punnam To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: 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 00:59:41 -0000 HI all, i am working on a project , where i came across a situation where i need to execute a function when a timer expires ,exactly similar to functionality of the timeout() kernel function but i need this in userland(application), and the execution of the function is time sensitive, it should be run immediately when timer expires. i can't be using poll or select for timer becuse those will block the process untill the timer expires.for me the proess should not be blocked. and i also thought of taking the service of the timeout function by writing a system call and using signaling mechanism but i think this will become expensive when the number of timers to be checked increeses. i read the kern_timeout.c code that is very good implentation.with very less expensive. but i think user unable to enjoy that service. i will thankful if somebody can tell if there is any such a service or way provided by os( that i overlooked). thanks, -Pradeep --------------------------------- Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign!