Talk:Spawn (computing)

Spawn functions are not unique to Windows

Microsoft Windows OSs are not the only ones that provide an spawn function in order to launch new processes, i.e.: OpenVMS, OS/400

I removed the comment that 'the rest of this article is about the Microsoft Windows spawn functions' and changed heading levels to collect the Windows parts under an L2 heading so we can add other L2 headings for different OSes. RJFJR (talk) 13:10, 13 August 2011 (UTC)[reply]

Possibly-bogus claims about spawn* in Windows

Spawn (computing) § envp claims that

Under Microsoft Windows, the spawn* functions use LoadModule to run the spawned process; and if this fails, an attempt is made to spawn a normal MS-DOS process. If a Windows application is spawned, the instance handle can be obtained using exec_instancehandleget. It is possible to specify how the spawned program will be shown using the functions _exec_showset, _exec_showget, and _exec_showreset.

First, a quick look at the Universal C Runtime source seems to indicate that the spawn* functions use Boring Old CreateProcess(). I'm not sure why, in effect, reinventing CreateProcess() is something that the spawn* functions would need to do.

Second, what is "a normal MS-DOS process" in 32-bit and 64-bit Windows?

Third, I'm not finding exec_instancehandleget() in any Windows documentation. A Google search for "exec_instancehandleget" (complete with the quotes, to ward off mismatches) found 1) a Wikibooks page, 2) this page, and 3) the process.h page in the Digital Mars C/C++ compiler documentation - https://www.digitalmars.com/rtl/process.html. That page, BTW, says something very similar to the quoted text above.

Is this really just talking about the Digital Mars C run-time library, with the Microsoft C library being different? Guy Harris (talk) 05:37, 14 October 2025 (UTC)[reply]

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.