From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 11 06:24:49 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 BBFD616A41C for ; Sat, 11 Jun 2005 06:24:49 +0000 (GMT) (envelope-from kamalpr@yahoo.com) Received: from web52708.mail.yahoo.com (web52708.mail.yahoo.com [206.190.39.159]) by mx1.FreeBSD.org (Postfix) with SMTP id 4ED5543D48 for ; Sat, 11 Jun 2005 06:24:49 +0000 (GMT) (envelope-from kamalpr@yahoo.com) Received: (qmail 57147 invoked by uid 60001); 11 Jun 2005 06:24:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QsWgqAc6vSXsIL9cwnvmBoXGrtcwKyoiaoa59kCANLzqcny/Ynhrxarw3pKd6uoCoP+lRg4QTzSxnSsCeu0I3X5spNVLoL8CMp2W+bNn0sfXGuOG1F9zoP+4vSfnG7SpCPb71GlQlB1X4e/biWg0edJ8wITb+PvvZnNxomKWl8M= ; Message-ID: <20050611062448.57145.qmail@web52708.mail.yahoo.com> Received: from [64.186.168.226] by web52708.mail.yahoo.com via HTTP; Fri, 10 Jun 2005 23:24:48 PDT Date: Fri, 10 Jun 2005 23:24:48 -0700 (PDT) From: "Kamal R. Prasad" To: Neo-Vortex , Mike Hunter In-Reply-To: <20050611085830.N98712@Neo-Vortex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: Slowing down an old program to run on a fast CPU? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kamalp@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2005 06:24:49 -0000 --- Neo-Vortex wrote: > > > On Fri, 10 Jun 2005, Mike Hunter wrote: > > > Hey everybody, > > > > I was playing around in ports and came across > xroach. Cool program :) > > The only problem is that it runs too fast; you > can't see the roaches > > because they scurry under your windows too > quickly. > > > > Is there a general-purpose approach to this kind > of problem in the FBSD > > world? I can see myself writing a C program > called `slow` that would take > > argv[1] as the factor ( > 1) by which argv[2] > should be slowed down by. > > > > Anybody else ever come up against this? > > > > Thanks and happy Friday! > Try lowering the priority of the target using nice and see if you can raise the priority of all other processes. In that case, the process with a lower priority will be automatically starved of cpu time. (p.s It has happned inadverently to me many times during debugging that I starved my shell of resources). regards -kamal > You could try installing vmware and running however > many copies of windows > it takes to make the game playable... (i would say > some other form of > *BSD, but it probobly wouldn't hog as much cpu :P) > > ~NVX > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > ------------------------------------------------------------ Kamal R. Prasad UNIX systems consultant kamalp@acm.org In theory, there is no difference between theory and practice. In practice, there is:-). ------------------------------------------------------------ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com