On Wed, 21 Oct 2026 19:01:38 -0000 (UTC)Processes are almost self-contained virtual machines. Unix has one of
cross@spitfire.i.gajendra.net (Dan Cross) wrote:
In article <11bb1da$qfn9$1@dont-email.me>, <boltar@battlestar.co.uk> wrote: >>> Not sure why you think its conspiracy anything. I use the language on a
daily basis and everytime a new version comes out I hope they've added
something useful but since 2014 its been a law of diminishing returns.
Plus there's unexplained omissions - eg threads have been part of the core >>> language since 2011. Great, but what about processes? When do we get them? >>> Sure, I could just use fork() but then I could also just use pthread_create()
too.
One can implement a pretty reasonable threads library given the
virtual machine model of standard C or C++. Processes? With
Virtual machine? Wrong language , comp.lang.java is that way --->
their own address spaces, credentials, resource limits, IPC
mechanisms, potentially running different programs, and so on?
Not so much. You need an operating system for that, son.
You need an OS to do threading properly too. Theres a reason green threads
in java were a joke.
Processes are almost self-contained virtual machines. Unix has one
of the cleanest implementations around, and the fork() system call
combined with copy-on-write is very elegant. None of the other
operating system I have worked with have anything remotely like it.
VMS was also quite elegant, but so different that I think it would
be impossible to simulate one on the other (in either direction).
Threads are much simpler. Multiple strands of execution in a shared
address space. All the language needs to do is provide one shared
vocabulary to allow code portability.
To me it is obvious that threads can and should be standardized, while processes are generally not portable.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498678:20:40 |
| Calls: | 212 |
| Calls today: | 3 |
| Files: | 912 |
| D/L today: |
31 files (22,593K bytes) |
| Messages: | 69,867 |