'top' command always reports 0.0% cpu usage

2006-02-16 Thread Manuel Gonzalez Montoya
All, I just installed the lastest cygwin version on an XP Professional SP2 machine and noticed the output of the top command always reports wrong info (0.0%) about the CPU usage summary as you can see in the example: Tasks: 10 total, 1 running, 9 sleeping, 0 stopped, 0 zombie Cpu0

How to change the priority of a running process?

2006-03-24 Thread Manuel Gonzalez Montoya
Hi, It seems the 'snice' command is not working right, i tried this: snice +20 bash snice +20 -p 2448 ; where 2448 is the bash's pid reported by 'ps' and the priority showed by 'top' is always the same (8) before and after the snice. Is there another way of change the priority

mtime question

2008-04-07 Thread Manuel Gonzalez Montoya
Hi all, I'm writing a little program in C in order to detect when a file download is completed. The way i do that is checking when file's mtime stop changing. So far the code works ok on a real Linux installation, but I'm having problems on cygwin because mtime is changed only once at the end of