Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: I prefer to:

by jonadab (Parson)
on Jan 15, 2007 at 03:54 UTC ( [id://594689]=note: print w/replies, xml ) Need Help??


in reply to Re: I prefer to:
in thread I prefer to:

Okay, I do use Linux and BSD, but I'm not exactly a card-carrying Unix bigot. Non-Unix OSes I've used include PC-DOS 3.3, MS-DOS 5.0, 6.0, 6.22, Win95 OSR2, Win98SE, WinXP, Mac System 6, 7, MacOS 8, 9, BeOS 5PE, and OpenVMS 6, 7.2.

Yet, I've never heard of spawn in this context before. And I can't seem to find it listed on Wikipedia, either. What type of system is it associated with, and what are the semantic differences between spawn versus fork or threads?

Also I was under the impression that threading did not originate in the Unix universe but elsewhere were forking was more expensive, and was adopted by the Unix community only later. Was I mistaken?


Sanity? Oh, yeah, I've got all kinds of sanity. In fact, I've developed whole new kinds of sanity. You can just call me "Mister Sanity". Why, I've got so much sanity it's driving me crazy.

Replies are listed 'Best First'.
Re^2: I prefer to:
by rinceWind (Monsignor) on Jan 18, 2007 at 13:34 UTC

    You mention VMS. Surely you've heard of lib$spawn(), not to mention the DCL command spawn, which is the natural way of creating a subprocess to do something different from the parent (as distinct from launching a detached process, which is roughly the equivalent of a nohup). The posix layer implements fork, but this is not the native VMS way of doing or thinking about things.

    Digital had a lot to do with the invention of threads. PThreads are a derivative of DecThreads, and VMS was one of the platforms on which they were originally targetted. The reason for this was that there is a substantial overhead in process creation - spawns were expensive, and threads provided a convenient way of multitasking inside a process's address space.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

      Admittedly, my knowledge of VMS is less than my knowledge of most of those other systems, and I am pretty much an end user on that platform (inasmuch as there is any such thing as an end user on VMS). I really should turn on my Vax more often and play around with it more.

      Sanity? Oh, yeah, I've got all kinds of sanity. In fact, I've developed whole new kinds of sanity. You can just call me "Mister Sanity". Why, I've got so much sanity it's driving me crazy.
Re^2: I prefer to:
by bart (Canon) on Feb 01, 2007 at 12:41 UTC
    Yet, I've never heard of spawn in this context before. And I can't seem to find it listed on Wikipedia, either. What type of system is it associated with, and what are the semantic differences between spawn versus fork or threads?
    It sounds familiar to me, because of the node They didn't give me a fork so I have to eat with a spawn..

    "To spawn" is to produce offspring, hence, creating a child process. No mystery there. You can do it by calling system, for example.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://594689]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-24 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found