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


In reply to Re: system("start ...") has 30 secs delay by anonymized user 468275
in thread system("start ...") has 30 secs delay by yike

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.