From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,87a9e6f2526ba20c,start X-Google-Attributes: gidfee84,public From: Rakesh Didwania Subject: Please help Date: 2000/04/07 Message-ID: <38EE00C8.A8BDBD47@informix.com>#1/1 X-Deja-AN: 607866537 Content-Transfer-Encoding: 7bit Organization: Informix Software, Inc. X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Hi, Here is a simple C program: void f(void); main() { f(); f(); f(); f(); f(); } void f(void) { system("time abc"); } 'abc' is a big executable of size around 2MB. The output of the program is: real 1.7 user 1.6 sys 0.0 real 1.8 user 1.6 sys 0.0 real 1.7 user 1.6 sys 0.0 real 1.7 user 1.6 sys 0.0 real 1.7 user 1.6 sys 0.0 However, if I change f() to void f(void) { system("(time abc) &"); } The output is then : real 8.6 user 1.7 sys 0.0 real 8.6 user 1.7 sys 0.0 real 8.6 user 1.7 sys 0.0 real 8.2 user 1.7 sys 0.0 real 8.5 user 1.7 sys 0.0 These tests are done on 4.0e DEC. Can anyone explain me the reason why the real time is so high when I run the test in background? One reason for this may be that the jobs in background may run at a low priority. But the interesting thing is that the real time is very low in 4.0d DEC almost about 6-8 times less. Is anything changed from 4.0d to 4.0e? Any help would be highly appreciated. Best Regards, Rakesh.