Message-ID: <3B14752F.E25FCB3F@optushome.com.au>
From: andrew young <abyoung@optushome.com.au>
X-Mailer: Mozilla 4.75 (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: Re: Utility to view processes in minix
References: <842e5351.0105211106.36eed78e@posting.google.com>
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit
Lines: 18
Date: Wed, 30 May 2001 04:21:03 GMT
NNTP-Posting-Host: 203.164.62.46
X-Complaints-To: abuse@optushome.com.au
X-Trace: news1.blktn1.nsw.optushome.com.au 991196463 203.164.62.46 (Wed, 30 May 2001 14:21:03 EST)
NNTP-Posting-Date: Wed, 30 May 2001 14:21:03 EST
Organization: @Home Network
Path: news.adfa.edu.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!newshub1.rdc1.nsw.optushome.com.au!news1.blktn1.nsw.optushome.com.au.POSTED!not-for-mail
Xref: news.adfa.edu.au comp.os.minix:37499

alternatively you can place a printf to display the user time amongst other things of
a process in the sched function within /kernel/proc.c. I found that this gives me a
better estimate of how much time each process is on the cpu.

have fun.

alark wrote:

> Hi,
> I am working on a process scheduling program and have implemented a different
> process scheduling for minix. I know its working, but unlike other flavors
> of unix, there is no "top" utility to tell me which process is running when on the
> cpu.
> Please could you let me know what could be a practical solution to find
> which process is running and holding the cpu?
> thanks a lot,
> alark

