Spawn (computing) - DOS/Windows Spawn Functions

DOS/Windows Spawn Functions

The DOS/Windows spawn functions are inspired by Unix functions fork and exec; however, as these operating systems do not support fork, the spawn function was supplied as a replacement for the fork-exec combination. However, the spawn function, although it deals adequately with the most common use cases, lacks the full power of fork-exec, since after fork any process settings which will survive an exec may be changed. However, in most cases, this deficiency can be made up for by using the more low-level CreateProcess API.

In the spawnl, spawnlp, spawnv, and spawnvp calls, the child process inherits the environment of the parent. Files that are open when a spawn call is made remain open in the child process.

Read more about this topic:  Spawn (computing)

Famous quotes containing the words dos, windows, spawn and/or functions:

    The Enormous Room seems to me to be the book that has nearest approached the mood of reckless adventure in which men will reach the white heat of imagination needed to fuse the soggy disjointed complexity of the industrial life about us into seething fluid of creation. There can be no more playing safe.
    —John Dos Passos (1896–1970)

    this frenzy,
    like bees stinging the heart all morning,
    will keep the angels
    with their windows open,
    wide as an English bathtub.
    Anne Sexton (1928–1974)

    Wherefore did Nature powre her bounties forth,
    With such a full and unwithdrawing hand,
    Covering the earth with odours, fruits, and flocks,
    Thronging the Seas with spawn innumerable,
    But all to please, and sate the curious taste?
    John Milton (1608–1674)

    Nobody is so constituted as to be able to live everywhere and anywhere; and he who has great duties to perform, which lay claim to all his strength, has, in this respect, a very limited choice. The influence of climate upon the bodily functions ... extends so far, that a blunder in the choice of locality and climate is able not only to alienate a man from his actual duty, but also to withhold it from him altogether, so that he never even comes face to face with it.
    Friedrich Nietzsche (1844–1900)