in reply to system("start ...") has 30 secs delay

XP is a descendant of Windows 98 (mainstream consumer Windows) which schedules processes from the active window, whereas the NT kernel was originally built from scratch specifically to enable Windows to compete with the multi-user task scheduling environments offered by rivals such as Unix/X-Windows, (i.e. "real" operating systems built up from carefully designed service layers).

Your example compares starting a process directly from a DOS window and from the system command in perl. The latter is an example which is more favoured by the NT scheduling module than the XP model, which presumably had to go into contortions to meet this kind of requirement.

Update: Given that performance anyway varies drastically from one machine environment to another, dependant on many factors, I removed a previous speculation about why it might be 30 seconds.

One world, one people

  • Comment on Re: system("start ...") has 30 secs delay

Replies are listed 'Best First'.
Re^2: system("start ...") has 30 secs delay
by Tanalis (Curate) on Jul 08, 2005 at 13:34 UTC
    Sorry, but that's completely wrong. Windows XP is built on the Windows 2000 and NT architectures, not based on the Windows 98/95 codebase, although "the best features of Microsoft's consumer operating systems" are apparently merged in.

    Microsoft themselves explain this on their "Features" pages: Home Edition/Professional Edition, and probably in more depth in some KB article or on MSDN somewhere, but I don't have time to go digging.

    Interestingly, a previous employer of mine used to ask the difference between 98 and XP as a part of their interview procedure - it's surprising how many candidates with "Expert: Windows 95/98/Me/2000/XP" on their CV got it wrong ...

Re^2: system("start ...") has 30 secs delay
by holli (Abbot) on Jul 08, 2005 at 12:35 UTC
    I use the system command from both XP pro and XP home and I never experienced such a behavior.


    holli, /regexed monk/
    A reply falls below the community's threshold of quality. You may see it by logging in.